how to generate random numbers that satisfy certain distribution

Steven D'Aprano steve at
Sat Jan 23 23:05:07 CET 2010

On Sat, 23 Jan 2010 11:10:52 -0800, thinke365 wrote:

> of course i have tried random package, but can this package generate
> random sequence that satisfy possion distribution , normal distribution
> and uniform distribution

Please don't talk garbage. If you had really tried the random module, you 
would know the answer. What do you think random.uniform does?

In an interactive Python session:

>>> import random
>>> help(random)

and read. When you've done that, if you still have any specific 
questions, please ask.


More information about the Python-list mailing list