xxxxxxxxxx
random.randint(0, 100)
##This would make the random number be from 0 to 100
xxxxxxxxxx
from random import randint
print(randint(1, 10))
# prints a random integer from 1 to 10
xxxxxxxxxx
from random import randint
random_integer_between_40_and_50 = randint(40, 50)# 40 is start and 50 is end
print(random_integer_between_40_and_50)
xxxxxxxxxx
import random, string
number = ''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(N)) ## "N" is the length of the text