User guide All lessons Cookbook Function reference Open playground

Your first die

At the table

You roll one ordinary six-sided die and want to see how likely each face is.

Try it

In the playground, open this file and click Run (or press Shift+Enter).

The script

output("one_d6", 1d6)

This tool counts outcomes; it does not simulate thousands of rolls.

Reading the result

The report shows a header with mean (average roll, 3.5 for one d6) and a small table: each face and its probability (about 0.166667 per face).

Try this

one_d6 · DieRoll · mean 3.500

outcome%fracX/6
116.71/61
216.71/61
316.71/61
416.71/61
516.71/61
616.71/61

Next

Lesson 2: Adding two dice