Check out example codes for "random between two floats python". It will help you in understanding the concepts better.

Code Example 1

>>> random.uniform(1.5, 1.9)
1.8733202628557872

Code Example 2

# The random function random() returns a random float between
# zero and one
import random
random.random()

Learn ReactJs, React Native from akashmittal.com