About Lesson
The random Module:-
Python has a built-in module that you can use to make random numbers.
random() Method
The random() method returns a random floating number between 0 and 1 (0 including, but excluding 1).
Example:-
import random
print(random.random())
Output:
0.73