Pick random numbers in any range
Set a minimum and maximum, choose how many numbers you need, and generate. Turn on "no duplicates" for draws and raffles where each number may appear only once. The total, average and sorted version of your results are shown too, and one click copies the list wherever you need it.
Everyday uses
- Pick giveaway and raffle winners from entry numbers.
- Randomize lists, groups and presentation order.
- Generate test data and sample numbers for spreadsheets.
- Roll virtual dice: set the range 1 to 6 and generate as many rolls as you need.
How the generator picks a number
Under the hood, the tool asks your browser for cryptographically secure random values using the Web Crypto API, the same system your browser relies on for secure connections. It requests a large random integer, then maps that value into your chosen range in a way that avoids bias. Simple mapping with a remainder can slightly favor low numbers when the range does not divide evenly into the possible values, so the tool calculates a cutoff limit and rejects any random value above that limit, drawing again instead. The result is that every number between your minimum and maximum has an equal chance of appearing. When no duplicates is switched on, each winning value is stored in a set as it is drawn, and any repeat is discarded and redrawn until your list is full or the range is exhausted.
A worked example: running a small raffle
Say you sold 250 raffle tickets numbered 1 to 250 and you have three prizes. Set the minimum to 1, the maximum to 250 and the count to 3, then turn on no duplicates and generate. You might get a list such as 47, 182 and 9, which you read out in draw order: first prize to ticket 47, second to 182 and third to 9. Because duplicates are off, the same ticket cannot win twice. The stats panel will also show a sum of 238 and an average of 79.3 for that draw, handy when you use the same tool for sampling or classroom exercises. Screenshot or copy the list before you announce it, so the record matches what was drawn.
Practical tips for fair and useful draws
- Define the range from the real entries: if entries are numbered 0 to 99 in your spreadsheet, use exactly that range. A range that is even one number too wide can produce a winner that does not exist and force an awkward redraw.
- Generate once and commit to it: decide in advance that the first valid result stands. Regenerating until you like the outcome quietly destroys the fairness the tool is meant to provide, especially for giveaways with an audience watching.
- Use no duplicates for sampling: picking 20 survey respondents from 500 customers, 6 questions from a bank of 40, or 11 players from a squad of 18 are all sampling without replacement jobs, and the no duplicates setting is what makes each pick distinct.
- Save the exact settings with the result: record the minimum, maximum, count and duplicate setting alongside the numbers you copied. That small note lets you explain or reproduce the conditions of the draw later. Pair it with the Password Generator when you also need a random code or token for the same project.
- Scale the count to the job: generating 1,000 numbers suits test data, but for a single winner, one number is cleaner to announce and verify than a long list.
Common mistakes to avoid
- Asking for more unique numbers than the range holds: you cannot draw 30 distinct numbers from 1 to 20. The tool will stop and explain the problem, so widen the range or lower the count rather than switching duplicates back on by accident.
- Confusing random with evenly spread: a fair draw of 10 numbers from 1 to 100 can contain two numbers in the same decade and none in another. Clumps are normal in true randomness.
- Using inclusive ranges without checking: both the minimum and the maximum can be drawn in this tool. If your tickets run from 1 to 249 because ticket 250 was never sold, set the maximum to 249, not 250 out of habit.
- Treating a casual draw as a certified one: for workplace, school and community draws this generator is ideal, but regulated lotteries, legal disputes and high value promotions need an audited process with witnesses and records beyond a browser tool.
- Forgetting negative and zero ranges work differently: a range from negative 10 to 10 contains 21 values, not 20, because zero counts as well. Check the span before you set a unique count.