Random Number Generator
Pick a random number in any range.
Draw a random whole number between any minimum and maximum — negatives included — or grab a batch of up to 50 at once. Use it to pull raffle ticket winners, pick lottery-style number sets, or call on a random page or line in class. Every draw comes from your browser's Web Crypto API with rejection sampling, so no part of the range is favored.
Opciones
Pulsa Generate a number para ver un resultado.
Resultados recientes
- Aún no hay historial.
Preguntas frecuentes
What happens if I ask for more unique numbers than the range contains?
The draw is capped at the range size and a note explains why. Asking for 10 no-repeat numbers between 1 and 5 returns all five numbers, shuffled.
Can the range include negative numbers?
Yes. Both minimum and maximum accept negative values, and if you enter them backwards the tool swaps them automatically, so a range like -50 to 50 works fine.
How many numbers can I draw in one go?
Up to 50 per draw. With no-repeats on, every number in that batch is unique; with it off, duplicates can occur, like lottery balls drawn with replacement.
Is the generator biased toward any part of the range?
No. It uses crypto.getRandomValues with rejection sampling, which discards out-of-range raw values instead of wrapping them, so every integer from min to max is exactly equally likely.
When should I use this instead of the dice roller?
Use the dice roller when you want per-die results, totals, and modifiers. Use this when you need an arbitrary range, negative numbers, or a batch of unique picks.
Generadores relacionados
Further reading
- Saving for one thing: how to run a savings challenge that isn't 52 weeks long
The 52-week savings challenge is famous, but a whole year is the wrong length for most real goals. Here's how to scale the same shuffled-deposit idea to a specific purchase, a shorter sprint, or a biweekly paycheck rhythm.
- Why a long streak in 100 coin flips doesn't mean it's rigged
Flip a batch of 100 coins and you'll almost always see a streak of five or more somewhere in the run. That's not a broken randomizer — it's exactly what real randomness looks like. Here's the math behind streak length, and why 'it's due' is the wrong instinct.
- Why the standard 52-week savings challenge secretly punishes December
The classic ascending 52-week chart backs its biggest, hardest deposits into the final weeks of the year — right when holiday spending peaks. Shuffling the same amounts into a random order keeps the total and the deposit count identical while spreading the hard weeks evenly across the year.
- The dice math a digital roller gets right (and a physical set hides)
A lost d6 or a remote D&D session is the obvious reason to roll dice online. The less obvious reason: seeing the actual math of 2d6 vs. 1d20, and how a flat modifier changes your odds more than most players expect.
- Assigning fair raffle ticket numbers with a random number generator
Naming a winner by name feels arbitrary; drawing a number out of a known range feels provable. Here's when to reach for a numeric random draw instead of a name-list picker, with worked examples for raffles, lotteries, and sampling.