Adding two dice
At the table
You roll two six-sided dice and add them—classic 2d6.
Try it
In the playground, open this lesson in the playground and click Run (or press Shift+Enter).
The script
↗output("two_d6", 2d6)
2d6 means roll two six-sided dice and add them. The engine builds the combined distribution (2 is unlikely, 7 is most common).
Reading the result
The report mean should be about 7. The text tab’s table shows more weight on middle totals (6–8) and less on 2 or 12; graph makes the bell shape obvious.
Try this
- In the editor, try
2d10or1d10 + 1d10for the same roll.
two_d6 · DieRoll · mean 7.000
| outcome | % | frac | X/36 |
|---|---|---|---|
| 2 | 2.78 | 1/36 | 1 |
| 3 | 5.56 | 1/18 | 2 |
| 4 | 8.33 | 1/12 | 3 |
| 5 | 11.1 | 1/9 | 4 |
| 6 | 13.9 | 5/36 | 5 |
| 7 | 16.7 | 1/6 | 6 |
| 8 | 13.9 | 5/36 | 5 |
| 9 | 11.1 | 1/9 | 4 |
| 10 | 8.33 | 1/12 | 3 |
| 11 | 5.56 | 1/18 | 2 |
| 12 | 2.78 | 1/36 | 1 |