concept random library in category python

This is an excerpt from Manning's book Get Programming: Learn to code with Python.
Use the random library to generate random numbers
Random numbers generated by the random library aren’t truly random. They’re pseudo-random. They appear random, but are determined by the result of applying a function on something that changes frequently or is unpredictable, such as the time in milliseconds since a specific date. The date generates the first number in the pseudo-random sequence, and each number in that sequence is generated from the previous number. The random library allows you to seed the random numbers generated by using random.seed(N), where N is any integer. Setting the seed allows you to start with a known number. The sequence of random numbers generated within your program will be the same every time you run the program, as long as the seed is set to the same value. The following lines generate a random integer between 2 and 17 and then between 30 and 88:
import random print(random.randint(2,17)) print(random.randint(30,88))