on-internet
← Community

In python, what is the difference between random.uniform() and random.random()?

Stack Overflow ·

In python for the random module, what is the difference between random.uniform() and random.random()? They both generate pseudo random numbers, random.uniform() generates numbers from a uniform distribution and random.random() generates the next random number. What is the difference?

Comments

Sign in or sign up to comment and upvote.

No comments yet.