xxxxxxxxxx
smallest = 0
largest = 100
random_number = random.randint(smallest, largest - 1)
xxxxxxxxxx
from random import *
print(randint(1, 100)) # Pick a random number between 1 and 100.
xxxxxxxxxx
import random
random_integer = random.randint(1, 10)
print(random_integer)
xxxxxxxxxx
smallest = 0001
largest = 9999
random_number = random.randint(smallest, largest - 1)