[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.3 (rc3) now available
- From: Kim Alvefur <zash@...>
- Date: Fri, 3 Jun 2016 20:19:33 +0200
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