[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: "Eero Pajarre" <epajarre@...>
- Date: Mon, 22 Sep 2008 09:05:05 +0300
On Sat, Sep 20, 2008 at 4:31 PM, Mike Pall <mikelu-0809@mike.de> wrote:
>
> Don't forget about the Tausworthe generators. They can provide
> long periods with a small amount of state space:
>
> http://www.iro.umontreal.ca/~lecuyer/myftp/papers/tausme2.ps
>
> I was thinking about using them for the random number generator in
> LJ2. Since this needs to generate 52 bits for doubles (using the
> mask and subtract 1.0 trick) and since LJ2 needs 64 bit ints
> anyway, I've considered using one of these two:
>
I hope you also keep the possibility to use the standard random number
generation. I appreciate the fact that programs running using JIT get
100% similar results compared to non-JIT programs.
Eero