Random Number Generator
Generate cryptographically secure random numbers in any range. Choose how many, allow or forbid duplicates, sort and copy in one click.
How to use it
- Set the minimum, maximum and how many numbers you need.
- Turn off duplicates for draws and raffles where each number must be unique.
- Numbers come from the browser's crypto API, not Math.random — genuinely unpredictable.
Set a minimum, a maximum and how many numbers you need, and the generator produces them from crypto.getRandomValues — the same cryptographically secure source browsers use for session tokens — rather than Math.random, which is fast but not designed to resist prediction.
With or without duplicates
Turn duplicates off for anything where each result has to be unique — a raffle draw, picking unique winners from a numbered list, lottery-style number sets. Leave duplicates on for independent repeated draws, like simulating dice rolls or picking a random item where repeats are meaningful and expected.
Common uses
- Raffle and giveaway draws, where fairness has to be defensible.
- Picking a random sample from a numbered list — assign each item a number and draw that many uniquely.
- Lottery number generation across any range and count.
- Seeding test data or simulations that need genuinely unpredictable inputs.
Questions people ask
Is this random enough for a giveaway?
Yes. It uses crypto.getRandomValues, the same cryptographically secure generator browsers use for security tokens, with rejection sampling so every number in the range is equally likely.
Last updated 17 August 2026