Skip to content

Random Number Generator

Set the range and how many numbers you want, then tap the button. By default you get one number from 1 to 100.

?
Numbers in range–
Previous draw–

Updated: December 1, 2026Sources and method ↓

How do you pick a random number between 1 and 100?

Type the lowest and highest number, say how many you want, and tap Generate. The default is one number from 1 to 100. For a number between 1 and 10, just change the Max box to 10.

Every number comes from your browser's cryptographic random number generator (crypto.getRandomValues), the same kind of unpredictable source used for encryption. The tool also throws away any raw value that would tilt the odds and draws again. So between 1 and 100, the chance of 37 is exactly the same as the chance of 100: 1 in 100.

The numbers are made on your own device. Nobody can see them in advance, us included.

No repeats vs. repeats allowed

With No repeats on, a number that's been drawn doesn't go back in the hat. Think raffle tickets pulled from a bowl. That's what you want for "which three students present today", since nobody should be picked twice. Behind the scenes a Fisher-Yates shuffle does the work: it's like writing every number on a card, shuffling the deck and taking cards off the top.

With repeats allowed, each number goes back in the hat, so the same one can come up twice. That's how dice behave. To switch, untick the "No repeats" box.

Example: You draw 3 numbers from 1 to 10 with no repeats. How many different results are there if order doesn't matter? C(10, 3) = (10 × 9 × 8) ÷ (3 × 2 × 1) = 120. Your chance of guessing the exact three in advance is 1 in 120.

The same formula explains lottery odds. Powerball draws 5 white balls from 69 and 1 red ball from 26. That's C(69, 5) × 26 = 11,238,513 × 26 = 292,201,338 possible tickets, so a single ticket has a 1 in 292,201,338 shot at the jackpot.

How often do numbers repeat when repeats are allowed?

This one surprises people. Say you draw 10 numbers from 1 to 100 with repeats allowed. "There are 100 numbers, surely 10 won't clash." In fact the chance of at least one repeat is about 37%.

Chance of at least one repeat = 1 − (n/n) × ((n−1)/n) × … × ((n−k+1)/n)

Example: You draw 5 numbers from 1 to 20 with repeats allowed. The chance of no repeats is 1 × 19/20 × 18/20 × 17/20 × 16/20 ≈ 0.58. So the chance of at least one repeat is about 42%. Nearly a coin flip with just five numbers!

It's the same math as the famous birthday problem: in a group of 23 people, the chance that two share a birthday is just over 50%. When you draw with repeats, the card under the tool runs this calculation for your exact settings.

What can you use a random number generator for?

  • Picking students: Use roll numbers and draw from 1 to 30. Want to type the actual names? The random name picker is easier.
  • Giveaways and raffles: Pick a winning ticket or comment number. For several winners, raise the count and keep "No repeats" on.
  • Games: "I'm thinking of a number", bingo calls, random dares. For a classic 1 to 6, the dice roller is more fun, and for a yes/no call there's flip a coin.
  • Homework and experiments: Pick a random sample, or run probability trials in math class.

People often ask: "I just got 42, is it less likely to come up again?" No. Every tap is a brand-new, independent draw. "No repeats" only keeps numbers apart within the same draw. It doesn't remember your last tap.

Quick tips

  • Sort makes long lists easier to read. If the order matters (like speaking order), leave it off. To put names in a random order, try the random order generator.
  • Negative numbers work too, like −50 to 50. Whole numbers only.
  • Typed min and max the wrong way round? No problem, the tool swaps them.
  • You can make up to 1,000 numbers at once. Copy numbers puts them all on your clipboard, separated by commas.

Frequently asked questions

How do I pick a random number between 1 and 10?
Set Min to 1 and Max to 10, then tap Generate. Each number from 1 to 10 has the same 1 in 10 chance.
Is this random number generator truly random?
It uses your browser's cryptographic random number generator, which is unpredictable. The tool also makes sure every number in your range has exactly the same chance.
How do I stop numbers from repeating?
Keep the "No repeats" box ticked. A number that has been drawn won't come up again in the same draw.
Can I generate more than one random number?
Yes. Type anything from 1 to 1,000 in the "How many numbers?" box. With no repeats, you can't ask for more numbers than the range holds.
Does it work with negative numbers?
Yes. You can draw between −10 and 10, for example. Use whole numbers, not decimals.
What are the odds of guessing a number between 1 and 100?
1 in 100, or 1%. Every number in the range is equally likely.

Sources: Randomness: Web Crypto API, crypto.getRandomValues (W3C). No-repeat draws: Fisher-Yates shuffle. Powerball format (5 of 69 plus 1 of 26): Multi-State Lottery Association, powerball.com.

Last updated: December 1, 2026

Every draw uses your browser's cryptographic random number generator. The names you type never leave your device.

You might also need