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)

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