4 min read
2026-02-17
For games, Math.random() is enough, for security - only a cryptographic generator.
Ensure that boundary values are included or excluded as required by the task.
Math.random() is predictable—it can be reproduced by knowing the internal state of the generator.
When playing games, turn on the “No repeats” mode and generate all the numbers at the same time.
In scientific research and testing, record the starting value for repeatability of results.
The human brain sees patterns in random data - this is normal
“Why does 7 come up often” - with a small sample, deviations are inevitable
Uniformity appears only in a large sample
See also: Random names, Test data generator