1# generate random integer values
2from random import randint
3
4value = randint(0, 10)
5print(value)
6
1# imports random
2import random
3# randint generates a random integar between the first parameter and the second
4print(random.randint(1, 100))
1import random
2
3# random number 1 to 100
4x = random.randrange(0, 99)
5x = x + 1
6print(x)
1random.random()
2#Returns the next random floating point number between [0.0 to 1.0)