How to use the random number generator
- Type the minimum and maximum. Both are included, so 1 to 10 can give 1, 10 or anything in between.
- Choose how many numbers you want, from 1 to 1,000.
- Tick No repeats if each number may only appear once, and Sort if you want the list in order. Type numbers in Leave out to skip them, such as numbers already drawn.
- Press Generate or Enter. Press it again for a new result; earlier results stay listed below.
- Copy the list separated by commas, new lines or spaces, or press Download CSV to open it in a spreadsheet. A list also shows its average, lowest and highest value.
Change Type to Decimals for numbers such as 3.14 or 0.57, or to Normal (bell curve) for values that cluster around an average, as explained below.
The quick ranges pick straight away: 1 to 10, 1 to 100, 1 to 1,000, a dice roll from 1 to 6, or a coin toss as 0 or 1. The page address also updates with your range, so you can bookmark or share a generator set to, say, 1 to 50.
Random decimals
With Decimals, choose how many decimal places you want, from 1 to 10, and type a minimum and maximum such as 0 and 1, or 9.5 and 12.25. The generator treats the range as a list of evenly spaced values, every 0.01 with two decimal places, including both ends, and picks from them exactly as it picks whole numbers. So every value with that many decimal places is equally likely, No repeats works for decimals too, and you can leave out values. For a random fraction between 0 and 1, use 0 and 1 with as many decimal places as you need.
Normal distribution (bell curve)
Many real measurements, such as heights, test scores or small measurement errors, are not spread evenly but cluster around an average, with values further away becoming rarer. That shape is the normal distribution, or bell curve. Choose Normal (bell curve), enter the average (mean) and the standard deviation, which says how spread out the values are, and the number of values. About 68% of the values fall within one standard deviation of the mean, about 95% within two and about 99.7% within three. With a mean of 100 and a standard deviation of 15, the scale used for many IQ tests, roughly two thirds of the values land between 85 and 115.
The values are made with the Box–Muller method, which turns two evenly spread random numbers into one normally distributed number, using the same cryptographic random source as the rest of the page. A normal distribution has no hard minimum or maximum, so very rarely a value lands far from the average. Under a list, the page shows the sample’s own average and standard deviation, which come close to the ones you asked for, and closer with more values. This is useful for practice data in statistics lessons, simulations and testing spreadsheets.
How the numbers are picked, and why it is fair
Many simple generators turn a random fraction into a number in your range in a way that makes some numbers slightly more likely than others. This one avoids that. It takes random bits from your browser’s cryptographic generator, crypto.getRandomValues, which is designed to be unpredictable enough for security keys. If a draw falls in the small leftover part that can’t be divided evenly across your range, it is thrown away and drawn again. The result: every whole number from the minimum to the maximum has exactly the same chance.
With No repeats, the generator works like shuffling a deck of numbered cards and dealing from the top, so every possible set of distinct numbers is equally likely.
Repeats, streaks and chance
Real randomness looks less even than people expect. When numbers can repeat, every pick is independent: getting 7 now doesn’t make 7 less likely next time. Repeats also turn up sooner than intuition suggests. Picking 12 numbers from 1 to 100 gives at least one repeat about 50% of the time, and picking just 4 numbers from 1 to 10 also gives a repeat about half the time. This is the same effect as the famous birthday problem: in a group of 23 people, the chance that two share a birthday is just over 50%.
If you need each result to be different, for example when choosing raffle winners, tick No repeats.
Ways to use it
- Raffles and giveaways: number the entries, then pick winners from 1 to the number of entries with No repeats. Record the result, for example with a screenshot, so everyone can see it was fair.
- Classrooms: pick a student by class list number, form random groups or choose the order of presentations.
- Games: roll dice with the 1 to 6 range, flip a coin with 0 and 1, or decide who goes first.
- Decisions: number your options and let chance choose where to eat or which film to watch.
- Research and quality checks: choose a random sample of rows, survey responses or products to inspect, without picking favourites.
- Practice: make random sums for times tables or mental arithmetic.
Useful settings
- Pick a number from 1 to 10: minimum 1, maximum 10, 1 number.
- Lottery-style pick: minimum 1, maximum 49, 6 numbers, No repeats, Sort. (It won’t improve your odds; every combination is equally likely.)
- Random order for 30 people: minimum 1, maximum 30, 30 numbers, No repeats. The list is a shuffled order of everyone.
- Three-digit code: minimum 100, maximum 999, 1 number.
- Temperature or score with negatives: minimum −20, maximum 40.
How computers make random numbers
A computer follows instructions exactly, so on its own it can’t do anything truly by chance. Most programs use a pseudorandom number generator: a formula that produces a long sequence of numbers that look random, starting from a value called the seed. The same seed always gives the same sequence, which is useful for simulations and games that need to be repeatable, but it also means the numbers can be predicted by anyone who learns the seed.
A cryptographically secure generator, like the one this page uses, is built so that its output can’t be predicted even by someone who has seen earlier results. Browsers get it from the operating system, which keeps feeding it unpredictable input from the hardware. For everyday picks you won’t notice the difference, but it means nobody, including this website, can know or influence your next number.
Running a fair raffle or giveaway
- Make a numbered list of everyone who entered, in a fixed order such as the order entries arrived, and keep a copy.
- Set the minimum to 1 and the maximum to the number of entries.
- Set how many winners you need, tick No repeats, and press Generate once.
- Match each number to your list, and share a screenshot of the result together with the list so everyone can check it.
- If a winner can’t be reached, generate one more number in the same range and skip any that already won.
Deciding the rules before you draw, and drawing only once, is what makes a draw fair in the eyes of the people who entered.
Dice, coins and other chance games
The Dice quick range rolls a standard six-sided die. For two dice, set How many numbers to 2 and add them up; totals near 7 come up most often, because more combinations make them: 6 of the 36 possible rolls add up to 7, a 1 in 6 chance, while 2 and 12 each need one exact roll, a 1 in 36 chance. For other dice, set the maximum to the number of sides, such as 20 for a 20-sided die. The Coin range gives 0 or 1: decide in advance which one means heads. To pick a playing card, number the deck from 1 to 52 and use No repeats to deal several cards.
What it isn’t for
Although the randomness is cryptographic, a number you can see on screen isn’t a secret. For passwords, use your password manager’s generator, which stores the password safely too. For gambling and official lotteries, only the operator’s certified draw counts.
Frequently asked questions
Is this random number generator truly random?
It uses your browser’s cryptographic random number generator, the same kind of source used to create encryption keys, and picks every number in the range with exactly the same chance. For raffles, games, classroom picks and sampling, that is as fair as it gets.
How do I pick numbers without repeats?
Tick “No repeats” before you press Generate. Each number then appears at most once, like drawing numbered tickets from a hat without putting them back. You can’t ask for more numbers than the range holds.
Why did I get the same number twice?
Repeats are normal when “No repeats” is off: every pick is independent, so earlier results don’t make a number less likely. Picking 12 numbers from 1 to 100 gives at least one repeat about half the time.
Can I generate negative or very large numbers?
Yes. The minimum and maximum can be any whole numbers with up to 15 digits, including negative numbers, for example from −50 to 50.
Can it generate decimal numbers or a normal distribution?
Yes. Change Type to Decimals and choose 1 to 10 decimal places to get values such as 0.73 or 12.508, every one equally likely. Choose Normal (bell curve) and enter a mean and standard deviation to get values that cluster around the average, for statistics practice or test data.
Can I use it to pick lottery numbers?
You can use it to choose numbers, for example 6 numbers from 1 to 49 with no repeats. It can’t make you more likely to win: every combination has the same tiny chance in a fair lottery.
Is anything stored or sent anywhere?
No. The numbers are generated on your device and shown only to you. The last few results are listed below the generator until you leave the page.