Random Number Generator

Pick random numbers in a range. Set how many you want, allow or block repeats, and copy the results.

Last updated: 17 November 2026.

Both ends of the range are included, so 1 to 100 can give you 1 or 100. Press Generate again for a fresh set.

What a random number really is

A random number is a number you cannot predict before it appears. That sounds simple, but it is the whole point of the tool. When you ask for a number from 1 to 100, every number in that range has the same chance of coming up, and the number you got last time has no effect on the number you get next time. A 7 followed by a 7 is just as likely as a 7 followed by a 42, even though it feels like a repeat should be less likely. Our brains are good at spotting patterns, and they often see a pattern where there is only chance.

Computers do not roll dice, so they make random numbers with maths. The browser function this tool uses takes a value from its internal source of randomness and turns it into a number in your range. For everyday jobs, such as picking a winner, choosing a question, or deciding who goes first, that is random enough. It is not the same as the special randomness used for security, such as making a secret key, where a predictable number could be a real risk. For those jobs, you need a cryptographic source, and the tool for that is different: a strong secret should come from the password generator, which is built for secrets, not from a number picker built for games and draws.

Repeats on or off: which one you need

The one setting that changes the result most is the repeats checkbox, and the right choice depends on what you are doing. With repeats allowed, the tool can give you the same number more than once. That is the right choice when each draw is independent, like rolling a dice. If you roll a dice five times, you can absolutely get a 4 twice, and a tool that blocked repeats would be wrong. The same goes for simulating coin flips, dice rolls, or any game where the same result can happen again.

With repeats off, every number is different. That is the right choice when you are drawing from a fixed set, like names from a hat. If you are picking five winners from numbers 1 to 100, and repeats are on, one person could win twice, which is usually not what you want. With repeats off, each number can only appear once, so five numbers means five different winners. The same logic applies to picking questions for a quiz, choosing lottery style numbers, or assigning tasks, where each item should go to one person only.

Everyday uses for random numbers

The most common use is deciding something fairly. Who goes first in a game, who picks the next film, who gets the last slice, who answers the next question in class: a random number settles it without argument, because no one can claim the choice was biased. Pick a range that matches the group, such as 1 to 4 for four friends, and let the number decide. It is quick, it is fair, and it ends the debate.

Raffles and giveaways are the next use. Number the entries from 1 to however many there are, set the range to match, turn repeats off, and generate as many numbers as you have prizes. Each number is a winner, and no one wins twice. Run the draw where everyone can see it, and keep the result, because a draw that people can check feels fair. The same method works for a classroom: number the students, generate a number, and that student answers, presents, or picks the next topic.

How to read the results

The results appear as a row of numbered tiles, in the order they were drawn. The order matters when the draw is a sequence, such as the order in which people present, or the order of questions in a quiz. It does not matter when the draw is a set, such as a list of winners, where only the names count and the order is just the order they were picked. If the order matters, keep it as shown. If it does not, you can sort the numbers in your head or on paper.

It also helps to know the odds when the stakes matter. If you are picking one winner from 100 entries, each entry has a one in a hundred chance, which is one percent. If you are picking five winners from 100, each entry has a five in a hundred chance. If you want to work out what a one in a hundred chance means in money terms, such as a discount or a prize value, use the percentage calculator to work out the numbers before you run the draw, so everyone knows what is at stake.

Privacy and how the tool works

This generator runs fully in your browser. The numbers are made with plain JavaScript on your device, and nothing you enter, set, or generate is sent to a server, saved, or shared. There is no account, no upload, and no record of the numbers you draw. You can run as many draws as you like, copy the results, and close the page, and nothing remains behind.

Frequently asked questions

Are the numbers really random?

Yes, for everyday use. The tool uses the browser random function, which gives numbers that are unpredictable in practice. Each new draw is independent, so the last number does not affect the next one.

What is the difference between repeats on and off?

With repeats allowed, the same number can appear more than once, like rolling a dice again and again. With repeats off, every number is different, like drawing names from a hat without putting them back.

Why did I get an error about the range?

When repeats are off, you cannot ask for more numbers than the range holds. Asking for 10 different numbers from 1 to 5 is impossible, so widen the range or ask for fewer numbers.

Can I use this for a raffle or a draw?

Yes, for a casual raffle, a classroom draw, or picking a winner among friends. Turn repeats off so nobody wins twice, and run the draw where everyone can see it.

Is my data sent anywhere?

No. The numbers are generated in your browser with plain JavaScript. Nothing you enter or generate leaves your device, and nothing is stored.