lua-users home
lua-l archive

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

On 2016-06-02 19:19, Egor Skriptunoff wrote:
> nitpicking:on()
> 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))
> Probably, some rewording would be useful for Lua users not acquainted
> with C libraries.
> nitpicking:off()

Does the manual not mention that math.randomseed() takes an integer? And
why does this one not complain about being given a float when other
things throw an error for being given floats?

Kim "Zash" Alvefur

Attachment: signature.asc
Description: OpenPGP digital signature