Random Number Between 1 and 100

Generate a random whole number from 1 to 100, for percentile rolls, giveaways and guessing games.

Press Generate for a random number between 1 and 100, ends included.

Odds for numbers between 1 and 100

Possible numbers100
Chance of any one number1 in 100 (1.0%)
Average result over many picks50.5
Even / odd numbers50 even, 50 odd

Draws and giveaways from 1 to 100

1 to 100 is the percentile roll in tabletop games and a common range for giveaways and guessing games. Because each number is worth exactly 1%, a result of 37 or lower has a 37% chance, so you can turn any percentage into a single roll.

At the table, a d100 roll is usually made with two ten-sided dice, one marked in tens (00 to 90) and one in units (0 to 9), with 00 and 0 together read as 100. A single pick here replaces both dice and skips the reading step.

Duplicates in a 1 to 100 draw

Numbers pickedChance of a repeat (repeats allowed)Different sets (no repeats)
21.0%4,950
33.0%161,700
59.7%75,287,520
1037.2%17,310,309,456,440
2596.2%about 2.4 × 1023
50over 99.99%about 1.0 × 1029
100over 99.99%1

With repeats allowed, a duplicate is already more likely than not by pick 13 (55.7%), so keep No repeats ticked for any draw where a number should win only once. A particular set of 5 winning numbers comes up 1 time in 75,287,520.

Raffle odds with tickets numbered 1 to 100

When every ticket from 1 to 100 has been sold and winners are drawn with No repeats ticked, your chance of winning at least one prize depends on how many tickets you hold and how many winners are drawn:

Winners drawn1 ticket5 tickets10 tickets
11.0%5.0%10.0%
33.0%14.4%27.3%
55.0%23.0%41.6%
1010.0%41.6%67.0%

Holding 5 tickets with one winner is a straight 5 in 100. Drawing all the winners in one go gives the same odds as drawing them one at a time.

Turning a percentage into a roll

Each number from 1 to 100 is worth exactly 1%, so a chance written as a whole percentage becomes a single roll: succeed on that number or lower.

Chance you wantSucceed on a roll of
5%1–5
10%1–10
25% (one in four)1–25
50% (a coin flip)1–50
75%1–75

Fractions that aren't whole percentages don't fit. One in three would need 33.3 numbers, so use a 1 to 3 pick for that instead.

Guess the number between 1 and 100

Playing higher or lower? Always guess the middle of the numbers that are left, and you'll never need more than 7 guesses for 1 to 100. Guessing at random without the hints takes 50.5 guesses on average, even if you never guess the same number twice.

How long until your number comes up

Chance of having seen itWeekly draws needed
50%69
90%230
99%459

Say one number from 1 to 100 is drawn each week and every number goes back in the pot. Your number's average wait is 100 weeks, and there's roughly a 1 in 10 chance it takes longer than 230.

Checking a batch of 1,000 draws

With repeats allowed, 1,000 picks give each number 10 appearances on average, and a single number lands between 4 and 17 at least 95% of the time. The chance that some number never appears is at most 0.43%.

Uneven odds from a 1 to 100 roll

Give each prize a block of numbers and the size of the block is its chance. A prize wheel with a rare top prize could look like this:

ResultNumbersChance
Grand prize11%
Second prize2–109%
Small prize11–4030%
No prize41–10060%

Change the blocks to change the odds. Make the No prize block 61–100 and three results in five win something. The same trick splits people or website visitors into test groups: 1–50 see version A, 51–100 see version B.

Two rolls against the same target

Succeed onBoth rolls passAt least one passes
1–256.3%43.8%
1–5025.0%75.0%
1–7556.3%93.8%
1–9081.0%99.0%

Needing both rolls to pass is harsh. A 50% check becomes 25%. Getting two tries is generous. The same check then passes 75% of the time. Pick the rule before you roll. Changing it after seeing the first result skews the odds.

How the number is picked

Your browser's Web Crypto API supplies a 32-bit random value (4,294,967,296 possibilities). Dividing by 100 leaves 96 spare values that would tilt the odds toward the lowest 96 numbers, so the generator discards them and draws again (1 time in 44,739,243).

Frequently asked questions

How do I turn a percentage into a 1 to 100 roll?

Succeed on that number or lower. For a 35% chance, any roll from 1 to 35 wins, since each number is worth exactly 1%.

What are the odds of rolling 100 on a d100?

1 in 100 (1%). It takes 69 rolls before the chance of having seen it at least once passes 50%.