gget randome int python code example
Example 1: how to generate a random number python
import random
n = random.randint(0,22)
print(n)
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))