how to generate a random number from a range in python code example
Example 1: generate random number python
import random
random.randint(lower, upper)
Example 2: python randint
from random import randint
# generate an integer between 3 and 9 (inclusive range).
# (see randrange for exclusive range)
print(randint(3, 9))