Generate Random Numbers within a Defined Range
The random-randrange() function selects an item randomly from the given range defined by the start, the stop, and the step parameters. By default, the start is set to 0. Likewise, the step is set to 1 by default.
import random
The random.randint() function generates a random integer from the range of numbers supplied.