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

+1 vote
asked Jul 8, 2021 in NumPy by rajeshsharma
0 votes
asked Jan 1, 2021 in Python by SakshiSharma
...