Random Number Generator
Pick a random whole number between a minimum and a maximum, both included: 1 to 100 by default. Ask for several numbers at once and turn on No repeats to draw like a raffle, where each number can come up only once.
The preview is shortened. Copy and Download include the whole result.
Your text never leaves your device.
How to use
- Set Minimum and Maximum. Both are included, so 1 to 6 works like a die.
- Set How many numbers you need, and turn on No repeats if each number may appear only once.
- Press Generate for a new draw, then copy or download the list.
Examples
- Before
- Minimum 1, maximum 100, how many: 5
- After
- 52 32 72 41 80
- Before
- Minimum 1, maximum 6, how many: 6, no repeats
- After
- 2 4 6 1 3 5
Typical uses
- Games: roll a die (1–6), two dice (two numbers from 1–6, repeats allowed), or a 20-sided die (1–20).
- Picking a winner or a volunteer: number the people in a list and draw one.
- Random samples: choose 50 rows to check out of a 2,000-row spreadsheet, with No repeats on.
- Teaching: draw question numbers for a quiz, or show how often each number appears over many rolls.
- Decisions: 1 or 2, heads or tails.
How fair randomness works
A random source produces bits, and a range like 1–6 is not a power of two. The simple method, taking a random byte and computing the remainder after dividing by 6, makes some results more likely: 256 values do not split evenly into 6 groups, so 1 to 4 come up slightly more often than 5 and 6. This generator throws away the few values that would cause the imbalance and draws again, so every number in the range has exactly the same chance, however large the range.
For No repeats, a draw that covers most of the range is done as a shuffle of the whole range; a draw of a few numbers from a huge range picks numbers and skips ones already taken. Both give every possible set of numbers the same chance.
Common mistakes
- Forgetting that both ends are included. 1 to 10 has ten possible results, not nine.
- Using No repeats for dice. Real dice repeat. Rolling two dice means two independent numbers, so leave No repeats off.
- Expecting a “balanced” short sequence. Random numbers cluster: 3, 3, 3 is as likely as 1, 2, 3. A streak is not a sign of a bug.
- Min and max swapped. If the minimum is larger than the maximum, the tool asks you to fix it instead of guessing.
Frequently asked questions
How do I pick a random number between 1 and 100?
That is the default: open the page and a number from 1 to 100 is already drawn. Press Generate for another one. Both 1 and 100 can come up, each with the same 1-in-100 chance.
Is it really random and fair?
The numbers come from crypto.getRandomValues, your browser's cryptographic random source, and are mapped to your range without modulo bias, a common flaw where the lowest numbers come up slightly more often. Every number in the range has exactly the same probability. The generator's tests check this statistically.
How do I draw numbers without repeats?
Turn on No repeats. Each number in the range can then appear at most once, like tickets drawn from a hat. If you ask for more numbers than the range contains, for example 7 unique numbers from 1 to 6, the tool tells you instead of repeating.
Can I use it for a raffle or a giveaway?
Yes. Number the entries, set the range to match, and draw as many winners as you need with No repeats on. For transparency, share your screen or record the draw. Lotteries and prize draws with legal requirements may need a certified generator or an independent witness.
What range can I use?
Any whole numbers from minus one quadrillion to one quadrillion (±10^15), including negative ranges such as −10 to 10, and up to 10,000 numbers per draw. Decimal numbers are not supported; to get one decimal place, draw from 0 to 1000 and divide by 10.