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)
1d6is one fair die (faces 1 through 6); the tool expands it before running.output(...)records the full distribution so it appears in the results.
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
- Change
1d6to1d20in the code block below and run again.
one_d6 · DieRoll · mean 3.500
| outcome | % | frac | X/6 |
|---|---|---|---|
| 1 | 16.7 | 1/6 | 1 |
| 2 | 16.7 | 1/6 | 1 |
| 3 | 16.7 | 1/6 | 1 |
| 4 | 16.7 | 1/6 | 1 |
| 5 | 16.7 | 1/6 | 1 |
| 6 | 16.7 | 1/6 | 1 |