lua-users home
lua-l archive

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


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