lua-users home
lua-l archive

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


> Lua manual does not answer why the following seeds lead to the same
> pseudo-random sequence:
> math.randomseed(math.atan(1))
> math.randomseed(math.log(2))
> math.randomseed(math.sin(3))

The manual says "equal seeds produce equal sequences of numbers".
It does not say that "different seeds produce different sequences of numbers".