
Random Number Generator
Generate random numbers in any range you choose. Set a minimum and maximum, pick how many you want, and decide whether repeats are allowed. The numbers come from your browser's cryptographically secure random generator, so they're genuinely unpredictable — not the weak pseudo-randomness many pages use.
How to Use
Enter the minimum and maximum of your range, choose how many numbers to generate, and toggle 'no repeats' if you need every number to be unique (like a raffle draw). Click Generate. A single number shows large and clear; multiple numbers appear as a list you can copy all at once.
Why This Tool Is Useful
You need a random number more often than you'd think — picking a raffle or giveaway winner, choosing a lottery-style pick, assigning teams, rolling dice for a game, sampling data, or just making an unbiased decision. Doing it 'randomly' in your head isn't actually random. This tool gives a fair, secure draw, with a unique-values option so you can pull several winners without duplicates.
Secure vs Pseudo-Random
This generator uses crypto.getRandomValues, your browser's cryptographically secure random source, rather than Math.random. That means the output isn't predictable and is suitable for draws where fairness matters. It also uses rejection sampling to avoid the subtle bias that a naive modulo would introduce, so every number in your range is equally likely.
Unique Numbers for Draws
Turn on 'no repeats' when you need distinct results — for example, drawing five different raffle winners from tickets numbered 1 to 500, or picking lottery-style numbers. The tool keeps generating until it has the requested count of unique values, and warns you if you ask for more unique numbers than the range can provide.
Common Uses
A random number picker is handy for lots of everyday tasks:
- Choosing a giveaway or raffle winner fairly.
- Rolling dice or generating game values.
- Assigning people to random teams or groups.
- Picking a random sample from a numbered list.
- Making an unbiased yes/no or either/or decision.
Handy Ranges to Try
| To simulate | Range |
|---|---|
| Coin flip | 1 to 2 |
| Six-sided die | 1 to 6 |
| Two dice | 2 to 12 |
| Percentage | 1 to 100 |
| Playing card | 1 to 52 |
| Lottery-style pick | 1 to 49 |