lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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