random float value in random module in python code example
Example 1: python random float
# The random function random() returns a random float between
# zero and one
import random
random.random()
Example 2: generate random float python
random.uniform(0.0, 10.2)