Understanding the d100
A d100 is a hundred-sided die: it produces a whole number from 1 to 100, and every value is equally likely. This roller simulates that by drawing a uniform random integer in the range 1–100 for each die. It is used in tabletop role-playing games such as Call of Cthulhu and older editions of Dungeons & Dragons (for percentile checks and random tables), and any time you need a fair one-in-a-hundred outcome.
How the roll is generated
For each die, the tool computes Math.floor(random × 100) + 1, which maps the interval [0, 1) into the integers 1 through 100. When you roll several dice, it reports each individual result, their total (the sum), and the average (total ÷ number of dice).
Percentile ("d100") dice in real life
A true 100-sided die exists (a "Zocchihedron"), but at the table a d100 is almost always rolled as percentile dice: two ten-sided dice, where one die is read as the tens digit (00, 10, 20, … 90) and the other as the ones digit (0–9). You add them, and the special reading of "00" + "0" counts as 100 rather than 0. The result is still a uniform number from 1 to 100.
The probability math
- Each outcome: P(roll = k) = 1/100 = 1% for any k from 1 to 100.
- Expected value (mean): E = (1 + 100) / 2 = 50.5. For N dice the expected total is N × 50.5.
- Ranges: because outcomes are uniform, P(roll ≤ k) = k/100. So P(roll ≤ 30) = 30%, and P(roll > 95) = 5% — a common "critical" threshold.
- Variance of one die: for a discrete uniform 1…100, Var = (100² − 1)/12 = 9999/12 ≈ 833.25, giving a standard deviation of about 28.87.
Common reference points
- Roll ≥ 96 (top 5%): 5% chance — often used for rare successes or critical results.
- Roll ≤ 5 (bottom 5%): 5% chance — often used for fumbles or rare failures.
- Roll of exactly 100 (or 00): 1% chance.
- Roll ≤ 50: 50% chance — a coin-flip threshold.