lua-users home
lua-l archive

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


> Overflow could be a problem in this algorithm?
> If x became near MAX_INT, what happens on the next
> multiplication ?

That's a congruential generator with modulus MAX_INT.
The whole point is to allow and exploit overflow.
--lhf