python random number generator as int code example
Example 1: random number pythn
import random
n = random.randint(0,22)
print(n)
# Output: 2
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))