1# imports random
2import random
3# randint generates a random integar between the first parameter and the second
4print(random.randint(1, 100))
1# imports random
2import random
3# randint generates a random integar between the first parameter and the second
4print(random.randint(1, 100))
5# random generates a random real number in the interval [0, 1)
6print(random.random())
1#In contrast to randInt .random.uniform generates a floating number between two variables
2# imports random
3import random
4# randint generates a random integar between the first parameter and the second
5print(random.randint(1, 100))