0 votes
in Python by
Explain how can you generate random numbers in Python?

1 Answer

0 votes
by
To generate random numbers in Python, you need to import command as

import random

random.random()

This returns a random floating point number in the range [0,1)

Related questions

0 votes
asked May 25 in NodeJS Essentials by rajeshsharma
0 votes
asked Jan 2, 2021 in Python by SakshiSharma
...