User guide All lessons Cookbook Function reference Open playground

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

two_d6 · DieRoll · mean 7.000

outcome%fracX/36
22.781/361
35.561/182
48.331/123
511.11/94
613.95/365
716.71/66
813.95/365
911.11/94
108.331/123
115.561/182
122.781/361