Random Number Generator
Pick random numbers from any range — unique picks, exclusions, sorting, and quick dice/lottery presets included.
Options
About this tool
What this tool does
Set a minimum and maximum, decide how many numbers you need, and this picks them using your browser's cryptographically secure random number source rather than a predictable pseudo-random formula. You can require unique picks (no repeats), exclude specific numbers, and sort the results, or just jump straight to a preset like a dice roll or lottery draw.
Who it's for
Anyone settling a decision by chance, a teacher picking a random student, a raffle organizer drawing unique ticket numbers, a board game missing a die, or a developer who needs a quick sanity-check random value without opening a console.
How to use it
- Pick a preset (dice, coin flip, 1-100, or a 6-of-49 lottery draw) or set your own min, max, and count.
- Turn on "No repeats" if you need unique numbers — useful for lottery-style draws or picking distinct winners.
- Add numbers to exclude (like a number that's already been used) as a comma-separated list.
- Choose to sort ascending, descending, or leave the results in random order, then copy them with one click.
Real-world examples
Running a raffle with 50 entries and need 3 unique winner numbers? Set min to 1, max to 50, count to 3, and turn on "No repeats." Need a quick coin flip to settle an argument? Tap the Coin Flip preset. Picking lottery numbers to play? Use the built-in 6-of-49 preset or set your own game's range.
Frequently asked questions
Is this actually random, or just Math.random()?
It uses the Web Crypto API's crypto.getRandomValues(), a cryptographically secure random source, rather than Math.random() — every number is generated fresh in your browser and nothing is sent to a server.
Can I generate numbers without repeats?
Yes — turn on "No repeats" and every number in a batch will be unique, drawn from the available range minus any excluded values.
How do I exclude numbers I've already used?
Type them into the exclude field as a comma-separated list (e.g. "7, 13, 42") and they'll be skipped entirely when generating.
What's the maximum range or count supported?
You can generate up to 1,000 numbers per batch from any integer range your min/max values define.
Can I use this to roll dice or flip a coin?
Yes — the Dice (1-6) and Coin Flip (1-2) presets set the range instantly, or set your own range for a d20, d100, or any custom die.
