How to get a random number from 1 to 100
Both 1 and 100 can come up — that is 100 possible numbers, each equally likely.
Change the range any time, or ask for many numbers at once with No repeats.
Good for
- Pick a winner by entry number
- Guess-the-number games
- Choose a random page, row or percentage
- Classroom and raffle draws
More ranges
For anything else use the Random Number Generator with any range.
The odds
| On a single draw from 1 to 100 | Chance |
|---|---|
| Any one number you name | 1 in 100 (1%) |
| The same number twice in a row | 1 in 100 (1%) |
| An even number | 50 of 100 (50%) |
| An odd number | 50 of 100 (50%) |
| A prime number | 25 of 100 (25%) |
| A number above 50 | 50 of 100 (50%) |
Averages and repeats for 1 to 100
The average of many draws from 1 to 100 settles near 50.5, and a single draw typically lands within about 28.87 of it (the standard deviation of 100 equally likely whole numbers is the square root of (100² − 1) ÷ 12). Repeats are likely sooner than most people expect:
| With 100 possible numbers | Chance |
|---|---|
| At least one repeat in 2 draws | 1.0% |
| At least one repeat in 3 draws | 3.0% |
| At least one repeat in 5 draws | 9.7% |
| At least one repeat in 10 draws | 37.2% |
| Draws for a 50% chance of seeing one named number | 69 draws |
| Draws for a 90% chance of seeing one named number | 230 draws |
Randomness: Web Crypto getRandomValues. Probabilities on this page are exact counts — favourable numbers divided by all numbers in the range.
Common questions
How do I get a random number between 1 and 100?
Press Generate. Both 1 and 100 are included, so each of the 100 numbers has a 1 in 100 chance (1%).
Can I get several numbers from 1 to 100 with no repeats?
Yes — tick No repeats and set “How many numbers”. You can ask for up to 100, which returns every number from 1 to 100 in random order.
What are the odds of the same number twice in a row?
It is 1 in 100 (1%). Each draw is independent, so a number that just came up is no more or less likely next time.
How many numbers from 1 to 100 are prime?
25 of the 100 — 25%. Primes are numbers whose only divisors are 1 and themselves, such as 2, 3, 5, 7 and 97.
Is this random number generator truly random?
The numbers come from your browser’s secure random source (the same one used for encryption keys), and the range maths is exact, so no number is favoured. It is a computer-generated source rather than hardware noise, which is more than enough for games, draws, raffles, sampling and classroom use.