Random Number Generator
Free online random number generator. Pick a number between any min and max, generate single picks or lists, with custom step size and delimiters. Crypto-grade.
How are random numbers generated?
There are two families: true random numbers and pseudo-random numbers. The difference matters more than most people realize.
True randomness comes from physical processes that cannot be predicted even in principle — radioactive decay timing, atmospheric noise sampled by a microphone, thermal noise inside a CPU's ring oscillators. The randomness is fundamental, not just opaque. Hardware random number generators on modern chips (Intel's RDRAND, AMD's RDRAND, ARM's TrustZone) feed entropy directly from these sources.
Pseudo-randomness comes from deterministic algorithms — Mersenne Twister, xorshift, PCG, ChaCha20. Given the same seed, they always produce the same sequence. They are extremely fast and have excellent statistical properties (passing tests like Diehard and TestU01), but they are not unpredictable to anyone who knows the algorithm and the seed. The browser's crypto.getRandomValues mixes pseudo-random output with operating-system entropy and re-seeds frequently, which is why it is considered cryptographically strong even though it is technically a pseudo-random generator.
Why does the difference matter?
Cryptography: encryption keys, session tokens, and TLS handshakes need unpredictability. A flaw in the random source can break the whole system — see the 2008 Debian OpenSSL bug where weak randomness made ~250,000 SSH keys guessable.
Fairness: in gaming, gambling, and lotteries, predictable randomness is exploitable. Certified RNGs (the kind used by regulated casinos) require both cryptographic strength and audit trails.
Simulation: Monte Carlo methods in physics, finance, and machine learning train on huge volumes of random numbers. Speed matters more than crypto-strength here — most researchers use Mersenne Twister or PCG, with a fixed seed for reproducibility.
Security tokens: password reset links, API keys, and 2FA secrets must be unpredictable. A weak generator here is silent — nothing breaks visibly, but attackers can guess the token.
Sampling: in surveys and statistics, every population member must have equal probability of selection. A biased generator produces biased data, and the bias often is not visible until the conclusion is already wrong.
About the Random Number Generator
Pick a number between any minimum and maximum — or generate a whole list of them at once. This generator uses your browser's cryptographically-strong randomness source (crypto.getRandomValues, the same primitive that produces TLS session keys) rather than the older Math.random, which is fast but predictable enough that a determined attacker can rebuild its internal state after seeing a few outputs. For day-to-day picks — "who goes first", "which restaurant tonight", a lottery draw at the office — Math.random is fine. For anything where prediction would matter, the crypto source is the right default.
The step setting controls the spacing of allowed values. Step 1 with range 1-10 gives integers 1, 2, 3, ... 10. Step 0.5 with the same range gives 1, 1.5, 2, 2.5, ... 10. Step 2 with range 0-20 gives even numbers. Setting the list length over 1 turns single-shot mode into batch mode and joins outputs with your chosen delimiter — useful when you need quick sample data for testing.
Frequently Asked Questions

