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
1import random
2print(random.randint(10,100))
3
4 this will output somthing between 10 and 100
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
1smallest = 0
2largest = 100
3
4random_number = random.randint(smallest, largest - 1)