How the randomness works
Last reviewed November 15, 2026
Secure random numbers
Every pick uses crypto.getRandomValues(), the browser's cryptographically secure random number generator, rather than Math.random. It's the same source used for encryption keys.
Equal odds, exactly
A random 32-bit number has 4,294,967,296 possible values, which doesn't divide evenly by 26. Taking the remainder would make a few letters very slightly more likely. Instead, numbers from the uneven top end are thrown away and redrawn (rejection sampling), so every letter has exactly the same chance.
Other options
- No repeats: each picked letter is removed from the pool, like drawing from a bag.
- English frequency: letters are weighted by Peter Norvig's Google Books counts (E 12.49% down to Z 0.09%).
- Letter wheel: the letter is picked first; the spin just animates to it.
Testing
Automated tests check the bias removal, run a chi-square test on 26,000 picks, and check every option before each update.