[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The probability of returning zero by math.random is doubled.
- From: "Dirk Feytons" <dirk.feytons@...>
- Date: Fri, 19 Sep 2008 15:09:49 +0200
On Fri, Sep 19, 2008 at 12:58 PM, Gé Weijers <ge@weijers.org> wrote:
[...]
> In general it's a bad idea to use 'rand' for anything critical, it is
> usually implemented as a simple linear congruential generator, which have
> terrible properties. Much better generators exist. My favorite is the 'Well'
> generator
>
> http://www.iro.umontreal.ca/~panneton/WELLRNG.html
Bob Jenkins' ISAAC (http://burtleburtle.net/bob/rand/isaacafa.html)
appears to be quite good, assuming of course it is seeded properly.
It's also in the public domain.
--
Dirk