Free tool

Random Number Generator

Pick random numbers in any range — one at a time or a whole set at once — with an option for unique numbers and no repeats.

—Your random numbersSet a range and click Generate.

How to use the Random Number Generator

  1. Set the range — type the smallest and largest numbers allowed, for example 1 and 100 for a classic draw.

  2. Choose how many numbers you want in one set, from a single pick up to 1,000 numbers at once.

  3. Pick the repeat rule — choose Unique when every number must be different, as in a raffle, or allow repeats for dice-style rolls and sampling.

  4. Click “Generate”, then use “Copy results” to paste the full list into a spreadsheet, document, or message.

What is a random number generator, and who uses it?

A random number generator picks numbers so that no one — not you, not the person running the draw — can predict or steer the result. That one property makes it useful anywhere a choice has to be provably fair or simply free of human bias. Teachers use it to pick which student answers the next question, so the same confident hands do not go up every time. Event organizers use it to draw raffle and giveaway winners from ticket numbers. Tabletop and video game players use it as a stand-in for dice, cards, and coin flips. Researchers and students use it to select random samples, assign participants to groups, and shuffle practice questions so revision does not follow the textbook order.

This generator is built for those everyday jobs. You control three things: the range (the smallest and largest numbers allowed), the count (how many numbers come out in one set), and the repeat rule (whether a number can appear more than once). Everything runs in your browser using its built-in cryptographic random source — the same class of randomness your device uses for secure tasks — so the picks are evenly spread across the range and cannot be predicted from the previous results. Nothing is uploaded, no account is needed, and a draw takes less than a second from opening the page. If you need a random password rather than random numbers, our password generator builds those with letters and symbols included.

Worked example: drawing three raffle winners from 250 tickets

Suppose a school fair sells 250 raffle tickets, numbered 1 to 250, and there are three prizes. Each ticket must have the same chance, and no ticket should win twice. Set the smallest number to 1, the largest to 250, the count to 3, and the repeat rule to Unique. One click might produce a set such as 17, 148, 236 — three different tickets, drawn in a single step. The first number drawn takes the first prize, the second takes the second prize, and the third takes the third prize. Because the draw is without replacement, ticket 148 cannot quietly win two prizes, which is exactly the dispute the unique option exists to prevent.

The same setup scales down just as easily. A teacher with a class list of 32 students sets the range to 1–32 and the count to 5 with unique numbers on, and gets five different roll numbers to present that day. A board-game group that lost its dice sets the range to 1–6, the count to 2, and repeats allowed — because real dice can land on doubles — and rolls in the browser instead. Notice how only the settings change: the range always matches the real-world list being drawn from, the count matches how many picks the job needs, and the repeat rule matches whether the same item may legitimately be picked twice.

Unique draws vs repeats: which rule should you choose?

The repeat rule is the setting people get wrong most often, because both choices look reasonable until the result causes an argument. Choose unique numbers whenever the picks stand for distinct real things: raffle tickets, students, names in a hat, lottery-style number sets, or places in a queue. In a unique draw the generator picks without replacement — each number leaves the pool once drawn — so the size of your set can never exceed the size of the range. Asking for 10 unique numbers from a range of 1 to 6 is impossible, and the generator will tell you to widen the range or lower the count.

Choose repeats allowed when you are simulating something physical that can genuinely repeat: dice rolls, coin-flip sequences coded as 0 and 1, random practice drills, or generating test data where duplicates are realistic. With repeats on, every pick is independent — the generator has no memory of the last number, so a run like 4, 4, 4 is rare but perfectly possible, exactly as it is with a real die. A useful rule of thumb: if a repeated result would be unfair or impossible in the real activity, turn unique on; if a repeat would just be unusual, leave repeats allowed and let the odds behave naturally.

Common mistakes when generating random numbers

Tips for fair draws people trust

A fair draw is only half mathematics — the other half is letting everyone see that it was fair. Announce the rules before you generate: the range, how many numbers, and whether repeats are allowed. Generate once, in front of your audience or on a screen share, and read the results out in the order they appear. Then copy the list into the announcement post or results sheet immediately, while the screen is still visible, so the published numbers can be checked against what people saw. If a winner cannot be reached and a redraw is needed, say so publicly and draw a fresh single number for that prize only, rather than quietly re-running the whole set.

For classroom and study use, randomness works best as a habit rather than an event. Shuffle question numbers daily, pick presenters by draw instead of by volunteer, and let the generator assign review partners so groups change every week. Students accept a random pick with far less argument than a teacher pick, because the tool has no favorites — which is, in the end, the entire point of generating a number instead of choosing one.

Random Number Generator FAQs

How does this random number generator work?

You set the smallest and largest numbers allowed, choose how many numbers you want, and the generator picks values evenly across that range using the secure random source built into your browser. Every number in the range has the same chance of being picked on every draw.

Can the same number appear twice?

Yes, if the no-repeat option is off. With repeats allowed, each pick is independent, so the same value can come up more than once, just like rolling the same number twice on a die. Turn on the no-repeat option when every result must be different.

How do I generate numbers with no repeats?

Tick the unique numbers option before you generate. The generator then draws without replacement, which means once a number is picked it cannot be picked again in the same set. The count you ask for cannot be larger than the size of the range when this option is on.

What is the largest range I can use?

You can use any whole numbers your keyboard can type, from negative values up to very large positive values. In practice, ranges up to millions work instantly. If you need a single pick from a huge range, the generator handles it the same way as a small range.

How many numbers can I generate at once?

You can generate up to 1,000 numbers in one click. For most raffles, games, and classroom activities, sets of 1 to 100 numbers cover every need. If you need more, generate one set, copy it, and generate the next set.

Are the numbers truly random?

The generator uses the cryptographic random function built into modern browsers, which is designed to be unpredictable and evenly spread. That is strong enough for raffles, games, sampling, and everyday decisions. It is not a certified source for legal lotteries or security keys.

Can I use this for a raffle or giveaway draw?

Yes. Set the range to match your ticket or entry numbers, turn on unique numbers, and generate one number per prize. For a public draw, show the screen while you generate so everyone can see the result appear in real time.

How do I copy the results?

Click the Copy results button after generating and the full list is placed on your clipboard as comma-separated numbers. You can then paste the list into a spreadsheet, a document, or a message. If copying is blocked by your browser, select the numbers with your mouse and copy them manually.

Is my data sent anywhere?

No. All generation runs in your browser and nothing is uploaded or stored. The ranges and results you create never leave your device.

Copied