Answers

Question and Answer:

  Home  Python Developer

⟩ How to generate random numbers in Python?

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)

 164 views

More Questions for you: