[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.4 random number generator
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 22 Mar 2018 15:46:43 -0300
> - more importantly: when used to flip a coin (e.g. random(0,1) == 0) it
> generates a short sequence of 128 values.
By "a short sequence of 128 values" you mean it repeats itself after
128 values?
I generated a sequence of 1000 flips, then another sequence of 128 flips,
and searched for the second inside the first. The maximum match I found
was a subsequence of 13 values.
-- Roberto