Random Number Generator

Pick random integers in a range (client-side).

Guide: Random Number Generator

Generate random integers in a range for games, sampling, or classroom demos. This tool uses your browser’s randomness; results are not sent to our servers. Fairness in small raffles, board-game turn order, or Monte Carlo intuition all start with unpredictable integers—just know the difference between “feels random” and “cryptographically random.”

Cryptography note

For security-sensitive tokens, use our password generator or a vetted crypto library. Simple RNG for contests is fine; secrets deserve stronger requirements.

Predictable PRNG seeds broke many historical systems; never roll your own crypto for production secrets.

Sampling bias pitfalls

If you reject draws outside a range by looping, ensure your implementation does not skew low values—crypto-safe uniform int generation handles modulo bias carefully.

For statistics homework, state whether sampling is with or without replacement; our basic tool draws independently each click unless otherwise designed.

Related calculators