3 ms·
A call to Math.random() will in fact repeat eventually. The backing PRNG has a finite period.
by aftbit 4y ago
A call to Math.random() will in fact repeat eventually. The backing PRNG has a finite period.
- shhsshs 4y agoYeah, after it loops in several hundred years and I hear a pattern I've already heard, I'll be really annoyed!
- MichaelBurge 4y agoThe human brain is also finite, so even a true infinite random sequence would give the listener finitely many states. So it doesn't matter whether a sequence is finite or not.
- sudosysgen 4y agoIt may be partly affected by fully random effects such thermal noise, meaning there will be no period.