How to pick a random number in a range
Enter the range (from–to), how many numbers to draw and whether repeats are allowed. Every number in the range has the same chance — the generator uses the browser’s cryptographic randomness, not the predictable Math.random().
Without repeats, numbers are drawn like balls from an urn: a drawn number doesn’t go back in. So from 1–10 you can draw at most 10 unique numbers.
Uses
- Contests and giveaways — the number of the winning comment or entry.
- Randomising answer order, seat numbers or who goes first.
- Picking a sample for a survey or quality check.
- Games — 1 to 6 replaces a die, 1 to 100 a percentile roll.
Running a fair draw
Number the entries and save the list before drawing. Draw in front of witnesses or record your screen — the result is then easy to verify. If your list has names, the random name picker is simpler.
Common uses and tips
- Giveaways: number the entries (or comments) and draw one — screenshot the result for transparency.
- Classrooms and games: pick a student, a team or who goes first.
- No repeats: switch it on to draw several different numbers, e.g. 6 from 1–49.
- Fairness: numbers come from the browser’s cryptographic generator, so every value in the range is equally likely.
For other draws use the dice and coin flip, pick from a list or the lottery number generator.
Frequently asked questions
Can I draw several numbers at once?
Yes — up to 1,000 numbers per draw, with or without repeats.
Are the numbers truly random?
They come from the operating system’s cryptographic generator, the same one used to create encryption keys. The next result can’t be predicted.
Can I generate several random numbers without duplicates?
Yes — set how many numbers you need and turn off repeats; each number appears only once.
Is this random enough for a prize draw?
Yes. It uses the browser’s cryptographically secure random generator (crypto.getRandomValues), the same source used for passwords.