Skip to content
Random Letter
Menu

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

Testing

Automated tests check the bias removal, run a chi-square test on 26,000 picks, and check every option before each update.

Sources