Random Number Generator
Generate one or more random integers in a range you choose. Uses the browser’s crypto.getRandomValues for randomness, so the numbers are suitable for games, draws, and sampling. No server involved—everything runs locally.
Generate random numbers
Set range and click Generate.
How it works
We use crypto.getRandomValues to fill a buffer with random bytes, then map that to integers in [min, max] inclusive. Each number in the range has an equal chance (uniform distribution). Duplicates are allowed when generating multiple numbers.
When to use it
Use it for dice, lottery-style picks, random IDs, or any case where you need an unbiased random integer in a range.
Frequently asked questions
- Is it truly random? We use the browser’s cryptographic RNG, which is suitable for most uses. It is not suitable for long-term cryptographic keys without additional derivation.
- Can I get duplicates? Yes. When you generate multiple numbers, each draw is independent, so the same number can appear more than once.