Random number generator
Generate random numbers in any range, with or without duplicates. Draw a raffle, pick lucky numbers, or grab a single random value.
Set a range and generate your numbers.
How to generate random numbers
Set a minimum and a maximum, choose how many numbers you want, and hit Generate. Leave duplicates on for independent draws where the same number can come up twice, or turn on No duplicates for a unique draw where every number is different, which is exactly what a raffle needs.
Draws, raffles, and lucky picks
Use a range of 1 to the number of raffle tickets and pull as many unique winners as you need. Pick lottery style numbers, assign a random jersey number, or settle a bet with a single value between two bounds. The generator uses your device's cryptographic randomness where it is available, so the numbers are high quality, not just an approximation.
Fast and unlimited
You can draw up to a thousand numbers at once. The tool checks that a unique draw actually fits inside the range and tells you plainly if you ask for more unique numbers than the range can hold, so you are never left guessing why nothing appeared.
Where the randomness comes from
Each number is drawn from your device’s cryptographic random number generator through crypto.getRandomValues, the source browsers reserve for security-sensitive work, rather than the weaker Math.random. On top of that the tool uses rejection sampling: it throws away the raw values that would not divide evenly into your range and draws again. That step removes modulo bias, the flaw that makes simple random code quietly favor the lowest numbers in a range. Over a 1 to 100 draw the difference is small but real, and it is exactly the kind of thing a raffle entrant is entitled to ask about.
Common ranges and what they are for
| Range | Chance per number | Typical use |
|---|---|---|
| 1 to 2 | 50% | A yes or no call, same odds as a coin |
| 1 to 6 | 16.7% | Replacing a lost six sided die |
| 1 to 10 | 10% | Quick group draws and scoring |
| 1 to 100 | 1% | Percentage rolls and guessing games |
| 1 to 1,000 | 0.1% | Raffle ticket numbers |
Picking lottery style numbers
For a lottery style line, set the range to match the game, set how many numbers you need, and turn on No duplicates so the draw cannot hand you the same number twice. Worth knowing before you do: every combination has identical odds, so a randomly drawn line is neither better nor worse than birthdays or a neat 1-2-3-4-5-6. The one real argument for random numbers is that fewer other people pick them, so a winning line is less likely to be split.
Number generator or name picker?
Use the number generator when your entrants are numbered, such as raffle tickets, seats, or rows in a spreadsheet. Use the random name picker when you have the actual names, since a name on screen is far easier for an audience to verify than a row number. For a decision between a handful of written options, the spinner wheel shows the choice being made instead of just printing a result, and for one to six the dice roller is the more natural shape.
Frequently asked questions
Can I get numbers with no repeats?
Yes. Turn on No duplicates and every number in the draw will be unique, as long as the range is big enough to hold them all. If you ask for more unique numbers than the range can hold, the tool says so rather than failing silently.
What range can I use?
Any range you like, including negative numbers. The tool sorts out which bound is the minimum for you, so entering them the wrong way round still works.
How random is it?
Each number comes from your browser's cryptographic random source (crypto.getRandomValues) with modulo bias removed by rejection sampling, so every value in the range is equally likely. It falls back to Math.random only on older browsers that lack the crypto API.
How many numbers can I generate at once?
Up to 1,000 in a single draw. For a unique draw the count also has to fit inside the range, so 1 to 50 can produce at most 50 unique numbers.
Is a random number generator good for a raffle?
Yes. Number your entries from 1 to the number of tickets, set the count to the number of prizes, and turn on No duplicates so nobody wins twice. Show the range and the result on screen so entrants can see the draw was not repeated.
More SpinPicker tools
Spinner Wheel
Build a custom wheel, give it a spin, and let chance crown a winner. Save wheels and embed them anywhere.
Random Name Picker
Drop in a list of names and pull a fair winner. Great for classrooms, giveaways, and standup order.
Team Generator
Split a roster into balanced random teams in one click. Perfect for gym class, game night, and group projects.