Understanding the Random Dice Roller
This tool rolls any number of dice with any number of sides. Each die is generated independently and uniformly — every face from 1 to the number of sides has exactly the same chance. It reports the individual faces, their total, an optional flat modifier, and the exact statistics of the sum so you can see whether a given roll was lucky, unlucky, or typical.
Dice notation is written as NdS, where N is how many dice you roll and S is the number of sides on each. "2d6" means two six-sided dice; "1d20" means one twenty-sided die. A modifier is added afterward, so "1d20+5" rolls one d20 and adds 5 to the result.
The statistics of a single die
A fair S-sided die shows each face with probability 1/S. Its average (expected value) is the mean of 1 through S:
- Mean of one die: (S + 1) / 2. For a d6 that is (6 + 1)/2 = 3.5.
- Variance of one die: (S² − 1) / 12. For a d6 that is (36 − 1)/12 ≈ 2.9167.
Rolling N dice
Because the dice are independent, means and variances add. For N dice of S sides (before any modifier):
- Minimum total: N (all ones).
- Maximum total: N × S (all sides showing their highest face).
- Mean total: N × (S + 1) / 2.
- Variance of total: N × (S² − 1) / 12, so the standard deviation is √(N(S² − 1)/12).
A flat modifier shifts the minimum, maximum, and mean each by the modifier amount but does not change the variance or standard deviation — adding a constant moves the whole distribution without spreading it.
Why the sum is not uniform
A single die is uniform, but the sum of two or more dice is not. With 2d6 there are 36 equally likely outcomes, yet only one of them totals 2 (1+1) and only one totals 12 (6+6), while six of them total 7 (1+6, 2+5, 3+4, 4+3, 5+2, 6+1). That gives 7 a probability of 6/36 ≈ 16.7% versus 1/36 ≈ 2.8% for 2 or 12. As you add more dice the distribution of the sum approaches a bell curve by the central limit theorem.
Common reference points
- 1d6: range 1–6, mean 3.5, SD ≈ 1.71.
- 2d6: range 2–12, mean 7, SD ≈ 2.42; 7 is the most likely total.
- 1d20: range 1–20, mean 10.5, SD ≈ 5.77.
- 3d6: range 3–18, mean 10.5, SD ≈ 2.96; 10 and 11 are the most likely totals.
- 1d100 (percentile): range 1–100, mean 50.5, SD ≈ 28.87.