[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: PRNG for Lua 4.0?
- From: Doug Currie <doug.currie@...>
- Date: Tue, 10 Sep 2013 13:19:15 -0400
On Sep 10, 2013, at 11:52 AM, Michael Horvath <mikh2161@gmail.com> wrote:
> Yeah I tried local B = 2^23 and local B = 2^15, but it just made
> matters worse.
You may have an easier time with a Lagged Fibonacci Generator.
http://en.wikipedia.org/wiki/Lagged_Fibonacci_generator
Use a modulus of 2^23 so the addition is not truncated.
e