random generator
Fredrik Lundh
fredrik at pythonware.com
Tue Feb 5 02:47:56 EST 2002
"John" wrote:
> Any will do, e.g., uniform, normal, etc.
does any of the "uniform" or "normal" generators in the standard
random module do what you want?
http://www.python.org/doc/current/lib/module-random.html
This module implements pseudo-random number generators
for various distributions. For integers, uniform selection from
a range. For sequences, uniform selection of a random element,
and a function to generate a random permutation of a list in-
place. On the real line, there are functions to compute uniform,
normal (Gaussian), lognormal, negative exponential, gamma,
and beta distributions. For generating distribution of angles,
the circular uniform and von Mises distributions are available.
no "etc" generator in there, though.
</F>
More information about the Python-list
mailing list