User guide All recipes Tutorial Function reference Open playground

Count high faces in a pool

At the table

Some rules care how many dice in a pool met a target (not just whether any did). Example: count how many of 3d6 show 5 or 6.

Try it

Copy the script into the playground editor and run it. Output is a distribution over 0, 1, 2, or 3 successes.

The script

output("success_count", 3d6.count(5..))

success_count · DieRoll · mean 1.000

outcome%fracX/27
029.68/278
144.44/912
222.22/96
33.701/271