[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <email@example.com> 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'
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.