1# To create a list of random float numbers:
2import numpy
3random_float_array = numpy.random.uniform(75.5, 125.5, 2)
4# Output:
5# [107.50697835, 123.84889979]
1# The random function random() returns a random float between
2# zero and one
3import random
4random.random()
1from random import randint # Import randint from random
2print(randint(1,20)) # Gets random number from first parameter to the second