Random number between 1 and 100
One tap for a random number from 1 to 100, each with an equal 1% chance.
How to use the random number 1–100
- Tap Generate or press the space bar.
- To draw several different numbers, increase How many and turn off repeats.
- Tick Sort to list them from smallest to largest, then use Copy to paste them elsewhere.
Fair and private
flipj uses your browser's built-in cryptographic random number generator (crypto.getRandomValues), the same source browsers use for encryption keys. We also avoid "modulo bias", a subtle flaw where some results come up slightly more often than others. Every result is generated on your device, so nothing you enter is sent to us.
Every number from 1 to 100 has exactly a 1% chance on each tap. That makes the generator a direct stand-in for percentile dice, a numbered raffle drum or a "pick a number" game.
Guess the number in 7 tries
The classic game: one person generates a number and hides it, the others guess, and each wrong guess gets a "higher" or "lower". The winning strategy is a binary search. Guess 50; if the answer is "higher", guess 75; if "lower", 25; and keep guessing the middle of what is left. Each guess halves the range, and since seven halvings take you from 100 down to one, the strategy finds any number in at most 7 guesses, 5.8 on average.
| Found on guess | How many of the 100 numbers | Found by this guess or sooner |
|---|---|---|
| 1 | 1 | 1% |
| 2 | 2 | 3% |
| 3 | 4 | 7% |
| 4 | 8 | 15% |
| 5 | 16 | 31% |
| 6 | 32 | 63% |
| 7 | 37 | 100% |
The same idea scales well: 1 to 1,000 needs only 10 guesses at most. In a classroom it is a neat way to show why searching a sorted list is so fast. To make the game fairer to the guessers, cap them at seven guesses; to make it harder, allow only "yes" or "no" answers.
Raffles and percentages
Because each number is 1%, the generator turns any percentage into a decision. Want something to happen 30% of the time? Generate a number and say yes on 1 to 30. Tabletop games use the same trick with percentile dice (a d100), and the d100 page has the full tables for skill rolls.
For a raffle with up to 100 tickets, untick Allow repeats and set How many to the number of prizes. Drawing three prizes gives every ticket a 3% chance of winning one of them, and nobody can win twice. If fewer than 100 tickets were sold, set the maximum to the last ticket number so no draw lands on an unsold one.
Why repeats appear so quickly
With repeats allowed, a number that has already come up is just as likely as any other. Across a class where 30 pupils each generate one number, the chance that at least two get the same number is 99.2%, and a repeat becomes more likely than not as soon as 13 people have had a go. It is a quick, memorable demonstration of the birthday problem: try it, and then ask the class to predict the result before you do it again with 1 to 1,000.
| Numbers drawn (repeats allowed) | Chance of at least one repeat |
|---|---|
| 5 | 9.7% |
| 10 | 37.2% |
| 13 | 55.7% |
| 20 | 87.0% |
| 30 | 99.2% |
| 40 | >99.9% |
Ideas for 1 to 100
- Closest wins: everyone writes down a guess, then generate. Nearest guess chooses the film, takes the last slice or goes first.
- Random page or question: pick a page of a book or a question from a bank of 100.
- Percentile rolls in tabletop games, as described above.
- Shuffle 1 to 100: with How many set to 100 and repeats off you get every number once, in one of 9.33 × 10157 possible orders.
- Mental maths warm-ups: generate two numbers and add, subtract or find the difference.
Questions
How many guesses does it take to find a number from 1 to 100?
At most 7, if you always guess the middle of the remaining range (a binary search). On average it takes 5.8 guesses.
What are the odds of guessing a number between 1 and 100?
1 in 100, or 1%, with a single guess.
Is 1 to 100 the same as rolling a d100?
Yes. A d100 roll is a random whole number from 1 to 100.
Can I get every number from 1 to 100 once, in random order?
Yes. Set How many to 100, untick Allow repeats and tap Generate.
If two people pick a number from 1 to 100, how likely is a match?
1 in 100. With 13 people, at least one shared number becomes more likely than not.