randi python code example
Example 1: python random
from random import randint # Import randint from random
print(randint(1,20)) # Gets random number from first parameter to the second
Example 2: random.randint
import random
print(random.randint(3, 9))