RANDOM
Random number generator, fair and handy.
Generate random integers in a range (one or many, optionally all distinct for draws), roll dice, or flip coins. It uses the browser crypto API — a cryptographically secure source that is fairer and unpredictable compared to Math.random. Copy results instantly, all local.
Everything runs locally in your browser
Solution animation · law-of-large-numbers histogram
Simulated 6,000 draws · max deviation 42.0% · Some deviation remains; it converges as the sample grows
Is it fair?
It uses the browser’s crypto.getRandomValues (a cryptographically secure source) with rejection sampling to remove modulo bias, so every value is equally likely and unpredictable — ideal for draws, grouping and dice.
FAQ
Can I use it for a draw?
Yes. Enable “all distinct” to sample without replacement from the range — a fair lottery draw.
Are results stored or uploaded?
No. Numbers are generated locally on the fly, never stored or uploaded, cleared on refresh.