Guide
Drawing random numbers for raffles, samples and games
Choosing “a random number” in your head isn’t random: people avoid repeats, favor certain digits and rarely pick the ends of a range. When fairness matters, as in a raffle, a sample for a quality check or a classroom game, use a generator. This one uses your browser’s cryptographic random source, so every number in the range has exactly the same chance.
The settings
- From / To: the range, inclusive. Both ends can be drawn. If you swap them, the tool corrects the order.
- How many: up to 10,000 numbers at once.
- No repeats: each number can appear only once. It’s on by default, and it’s what most draws need.
- Sort: shows the results from smallest to largest, easier to read for lottery-style lines or long lists.
Press Generate. A single number is shown large; several are listed and can be copied. Earlier results for this visit appear under History.
Raffles and prize draws
Number the tickets, then set From and To to the first and last ticket, How many to the number of prizes, and keep No repeats on. If you sold tickets 1–250 and have three prizes, you get three different winning numbers, each ticket with an equal chance. For a draw people watch, share your screen while you generate.
Random samples for audits and surveys
To check 10 invoices out of 480, or interview 25 customers out of a list of 1,200:
- Number the rows (most spreadsheets show row numbers anyway).
- Generate the sample size with No repeats and Sort on.
- Check those rows.
Random sampling avoids the bias of picking “the first ten” or the ones that look interesting.
Lottery lines and games
For a lottery-style line, for example 6 numbers from 1–49, use No repeats and Sort. Every combination has the same chance, so the generator only saves time; it can’t improve the odds. For board games and role-playing, the Dice Roller has the usual dice ready.
Settings for common jobs
| Job | From – To | How many | No repeats | Sort |
|---|---|---|---|---|
| A number for a game | 1 – 10 | 1 | — | — |
| A raffle with 250 tickets, 3 prizes | 1 – 250 | 3 | On | Off (draw order = prize order) |
| Audit 20 of 1,200 invoices | 1 – 1200 | 20 | On | On (easier to look up) |
| A lottery-style line | 1 – 49 | 6 | On | On |
| Assign 30 students to random order | 1 – 30 | 30 | On | Off |
Keep No repeats off when values may repeat, such as simulating ten dice rolls with 1 to 6.
When it can’t help
- Decimals: only whole numbers are generated. Scale them yourself, for example 1–1000 ÷ 100.
- More unique numbers than the range holds: asking for 20 different numbers between 1 and 10 isn’t possible, and the tool tells you so.
- Reproducibility: there’s no seed. If you need to repeat the exact same draw, as in published research, use statistics software with a documented seed.
Numbers are generated in your browser; nothing is sent anywhere. For drawing names instead of numbers, use the Random Name Picker, and for a quick yes-or-no, Flip a Coin.
Who generates random numbers
- Raffle and giveaway organizers draw ticket numbers.
- Teachers pick question numbers, seat numbers or random groups.
- Auditors and quality controllers choose random samples of invoices, files or products to check.
- Researchers randomly assign participants or select survey respondents.
- Game players need a number in a range for board games and decisions.
A complete example: an audit sample
An auditor must check 20 of 1,200 invoices:
- Number the invoices 1 to 1,200 in a spreadsheet, in their natural order.
- Set From 1, To 1200, How many 20, No repeats on, Sort on.
- Generate; the sorted list makes it easy to pull the invoices.
- Save the list with the date in your audit notes, since results can’t be reproduced later.
Tips
- With No repeats on, asking for more numbers than the range contains shows an error; check the range.
- For a lottery-style line, use 1–49 with 6 numbers, no repeats, sorted.
- Results come from the browser’s cryptographic random generator, so each number in the range is equally likely.
Checked against the current version of the Random Number Generator on .

