1# generate random integer values
2from random import randint
3
4value = randint(0, 10)
5print(value)
6
1import random
2print(random.randint(10,100))
3
4 this will output somthing between 10 and 100
1# imports random
2import random
3# randint generates a random integar between the first parameter and the second
4print(random.randint(1, 100))
1from random import randint
2random_integer_between_40_and_50 = randint(40, 50)# 40 is start and 50 is end
3print(random_integer_between_40_and_50)