Re:An RNG that runs in your brain
by librasteve on Tuesday January 23, 2024 @01:08PM
(#39107148)
can try that in raku like this
> (1, 1, * + * ... Inf)[^42].pick mod 10
> (1, 1, * + * ... Inf)[^42].pick mod 10
The other one I use sometimes is the powers of 2 mod 100 and use the leading digit. This gives a cycle length of 20 with a flat distribution.