1# generate random integer values
2from random import randint
3
4value = randint(0, 10)
5print(value)
6
1from random import randint
2
3print(randint(1,5))
4
5##Possible Outputs##
6#1
7#2
8#3
9#4
10#5
1from random import randint
2
3print(randint(1,3))
4
5#Possible Outputs#
6#1
7#2
8#3
1import random
2minimum_int, maximum_int = 0, 10
3random_number = random.randint(minimum_int, maximum_int)
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)