Random Number Generator
Guide: How Random Number Generators Work and Why Fair Picks Matter
Nothing you enter or choose here leaves your device. This tool runs in your browser.
What makes a number random
The generator uses your browser's secure random source, the same one behind encryption keys, and picks in a way that gives every number in the range exactly the same chance. A quick method known as taking a remainder can favor some values slightly. This one avoids that. You set the smallest and largest number, how many you want, and whether repeats are allowed.
With or without repeats
Without the No repeats box, each number is drawn independently, so the same number can show up twice, like rolling a die several times. With it, each number is used at most once, like pulling names from a hat. That's the right choice for a raffle, a seating plan or choosing sample items.
| Job | Range | Count | Repeats? |
|---|---|---|---|
| Roll one die | 1 to 6 | 1 | Allowed |
| Pick 6 lottery-style numbers | 1 to 49 | 6 | No repeats |
| Choose a raffle winner from 240 tickets | 1 to 240 | 1 | Not relevant |
| Choose 10 survey respondents from 500 | 1 to 500 | 10 | No repeats |
| Random percentage | 0 to 100, 2 decimals | 1 | Allowed |
For scale: there are 13,983,816 ways to pick 6 numbers from 49, which is why jackpots are rare.
Running a fair giveaway
- Number every entry from 1 up, and keep the list.
- Say in advance how the winner will be chosen, and the date.
- Generate one number from 1 to the number of entries, ideally on a screen share or a recording.
- Keep a screenshot of the result and post the entry number with the winner's name.
- If the winner can't be reached, generate again, and say so publicly.
Things worth knowing
- No seed. Results can't be repeated by design. If you need the same sequence twice, for a test or a simulation, use a seeded generator in code.
- Decimals go up to 8 places. Useful for sampling and simulations.
- Up to 1,000 numbers at a time, with the option to sort them.
- Not for passwords. Use the password generator, which is built for that.
Need to choose between options instead of numbers? The random picker picks from a list, and the dice roller does the classic dice. Nothing leaves your browser. The guide to random picks explains how fairness is checked.
More ways to use it
- Classroom picks. Number your students and generate one with no repeats, so everyone gets a turn before anyone is picked twice.
- Board games. Replace missing dice with a range of 1 to 6, or roll 2 to 12 for a pair.
- Sampling. To check 20 invoices from a stack of 400, pick 20 numbers from 1 to 400 with no repeats and pull those pages.
- Secret Santa and teams. Generate a shuffled list by asking for every number in the range, sorted off.
- Test data. Create a set of random values with decimals to try out a spreadsheet or a script.
Written by Akinrinmade Michael · Updated October 24, 2026
How to use
- 1Enter the smallest and largest number.
- 2Choose how many, and whether to allow repeats or decimals.
- 3Press Generate again to get a new set, then copy them.
Frequently asked questions
Is it really random?
Yes. It uses your browser's secure random generator and avoids the small bias that simple methods can have, so every number has an equal chance.
Can I pick numbers with no repeats?
Yes. Tick No repeats to get different numbers each time, like drawing from a hat. You can ask for up to as many as the range holds.
Can I get decimals?
Yes. Choose how many decimal places, up to 8.
How many numbers can I get at once?
Up to 1,000, and you can sort them smallest or largest first.
Is anything sent to a server?
No. Everything runs in your browser and nothing is sent to us.
Read the guide
Learn how this works and how to get the most from it.
Developer
How Random Number Generators Work and Why Fair Picks Matter
The difference between ordinary and secure randomness, how to pick fairly without repeats, and what dice and coins really do.
3 min read
Related tools
Dice Roller & Coin Flip
Roll one to six dice, or flip a coin. Game dice too.
Random Name Picker & Team Maker
Spin a wheel to pick a name, or split people into teams.
UUID & Random Number Generator
Generate secure UUIDs (v4, v7) and random numbers.
Random Word Generator
Get random words, with length limits. For games and writing.