[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: The probability of returning zero by math.random is doubled.
- From: Dave Dodge <dododge@...>
- Date: Sat, 20 Sep 2008 02:30:58 -0400
On Fri, Sep 19, 2008 at 03:09:49PM +0200, Dirk Feytons wrote:
> On Fri, Sep 19, 2008 at 12:58 PM, G? Weijers <email@example.com> wrote:
> > 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.
Another popular one is the Mersenne Twister, which I've seen credited
many times in console games. The stock implementation used to be GPL
but is now BSD, and there are several Lua implementations/hooks
including "Numeric Lua" over at LuaForge and "lrandom" from lhf (who
has already replied in this thread :-)