Random Number Generator
Winners, lottery picks, random teams — set your range and let cryptographically fair randomness decide. No repeats mode included.
Spotted a mistake or have an idea? — errors get fixed and credited publicly.
Last reviewed: July 20, 2026 · Formulas verified by automated tests before every release.
Common uses
- Giveaways and raffles: 1 to N participants, unique winners.
- Games: dice substitutes (1–6, 1–20), random turn order.
- Sampling: pick random items from a list by their position numbers.
- Decisions: when "just pick one" is the honest answer, let the universe do it.
Why "cryptographic" matters
Ordinary random functions can be subtly biased or predictable. This generator uses the browser's cryptographic source with rejection sampling, so every number in your range has exactly the same chance — fair enough for real raffles.
Frequently asked questions
How random are these numbers?
They come from your browser's cryptographic random source (crypto.getRandomValues) with unbiased range mapping — the same quality used for security purposes, far better than a basic Math.random().
Can I generate numbers without repeats?
Yes — check "No repeats" to draw unique numbers, like pulling raffle tickets from a hat. The count is automatically capped at the size of your range.
Can I use this for a giveaway or raffle?
Yes — set Min to 1 and Max to the number of participants, generate, and the result picks your winner(s). For transparency, do it on a screen share or recording.
Are the numbers stored anywhere?
No. Generation happens in your browser and results disappear when you leave the page.