Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
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

error: Content is protected !!