1# generate random integer values
2from random import randint
3
4value = randint(0, 10)
5print(value)
6
1# generate random integer values
2from random import seed
3from random import randint
4# seed random number generator
5seed(1)
6# generate some integers
7for _ in range(10):
8 value = randint(0, 10)
9 print(value)
10
1#to choose a random number simply do this
2import random
3print(random.randint(1, 100))