Random Number Generator
Fill in the details below
Your output will appear here.
This free random number generator picks one or more whole numbers between a minimum and a maximum you set. Choose how many numbers you need and whether repeats are allowed. Use it for raffles, games, classroom picks, sampling and quick decisions. It runs in your browser, needs no sign-up and has no usage limit.
Fill in the details below
Your output will appear here.
Set the minimum and maximum, such as 1 to 10 or 1 to 500. Both ends can be picked.
Pick a single number or a list of numbers in one go.
Turn off duplicates to draw unique numbers, which suits raffles and picking winners.
Numbers are generated in your browser the moment you click, and nothing is stored.
Three steps from a blank form to a result you can use.
Enter the Minimum and Maximum. Every whole number from one to the other can be picked.
Enter how many numbers you need and decide whether the same number may appear twice.
Generate the numbers, copy them, or generate again for a fresh draw.
A random number generator picks numbers so that each one in the range has the same chance of coming up. This tool does it for any range you choose, for one number or a whole list.
When duplicates are off, you cannot ask for more numbers than the range holds. A range of 1 to 10 has only 10 unique numbers.
| Range | How Many | Duplicates | Typical Use |
|---|---|---|---|
| 1 to 2 | 1 | Yes | Coin flip: 1 for heads, 2 for tails |
| 1 to 6 | 1 or more | Yes | Rolling one or more dice |
| 1 to 10 | 1 | Yes | Quick decisions and guessing games |
| 1 to 100 | 1 | Yes | Percent style rolls in tabletop games |
| 1 to class size | 1 or more | No | Picking students or presentation order |
| 1 to ticket count | Number of prizes | No | Raffles and giveaway winners |
| 1 to list length | Sample size | No | Choosing a random sample from a numbered list |
To pick from names instead of numbers, number your list first. Then draw numbers in that range and match each one to its name.
Example: a school fair sold 250 raffle tickets, numbered 1 to 250, and has three prizes. This is an illustration of the settings and the maths.
Every ticket has the same chance of being one of the three winners: 3 in 250, or 1.2%. A person holding 10 tickets has about a 10 times higher chance than someone holding one ticket.
We suggest the organiser announces the settings before the draw, generates the numbers on a shared screen and records the result. If the first number drawn belongs to an unsold ticket, decide in advance whether to redraw. Writing the rule down first keeps the draw fair and easy to explain.
There are two main ways computers make random numbers.
This tool uses your browser's built-in random generator. That is fine for games, classroom picks, raffles and sampling. MDN notes that JavaScript's standard Math.random function does not provide cryptographically secure numbers and recommends the Web Crypto API for anything security related. For passwords, keys or codes that protect something, use a dedicated password generator instead.
Random does not mean evenly spread. In a short run you may see the same number twice or a cluster of high numbers. That is normal and is not a sign the generator is broken.
Quick answers about the Random Number Generator.
Yes. It is free with no sign-up and no limit on how many times you generate. Set a minimum and maximum, choose how many numbers you need and whether repeats are allowed, then generate. Everything runs in your browser and nothing is saved, so copy the result if you need it later.
They are pseudorandom, produced by your browser's built-in random generator. Each number in the range has the same chance of being picked, which is fine for games, raffles, classroom picks and sampling. They are not suitable for security uses such as passwords or encryption keys, or for regulated lotteries.
Turn Allow duplicates off before you generate. Every number in the result will then be unique, which is what you want for raffle winners or a random sample. You cannot ask for more unique numbers than the range contains, so a range of 1 to 20 gives at most 20 numbers.
Yes. Both the minimum and the maximum can be picked. A range of 1 to 10 has ten possible results, and a range of 0 to 10 has eleven. Check this when you number tickets or names, so the range matches your list exactly and no entry is left out.
Yes. Number your list of names or entries from 1 upward, set the Minimum to 1 and the Maximum to the last number, then generate with duplicates turned off. Match each number drawn to its name. Record the result, because the tool does not save past draws.
Because each pick is independent when duplicates are allowed. A fair generator can repeat a number or produce clusters, especially in short runs. Over many draws the results even out. If you need each number only once, turn Allow duplicates off before generating.
This invoice number generator creates a batch of invoice numbers from your prefix, starting number and digit...
This gift card number generator creates unique random codes for businesses that issue their own gift cards...
This product description generator writes a description for your product from three inputs: its name, its...
Turn a goal into three draft OKRs in seconds.