Pool success counts
At the table
Pool games often ask: how many dice succeeded, or did any die show a particular face? Indie designs like The Pool use “any natural 1”; other rules want “at least two 8+ on 5d10.”
Try it
Copy the script into the playground editor and click Run.
The script
↗output("how_many_high", 3d6.count(5..))
output("any_one", dice_pool(2, 6).p_any(1))
3d6is a pool (notation leaves dice separate before.count)..count(5..)returns a distribution over 0, 1, 2, or 3—the number of dice that showed 5 or 6..p_any(1)is a single probability: at least one die showed a 1 (11/36 on 2d6).
Related helpers on pools:
p_none(spec)— no die matched.p_at_least(k, spec)— at least k dice matched (e.g. two or more 8+).
Use the same face spec as keep / count: int, [faces], or ranges like 5...
Reading the result
how_many_high is a full DieRoll table. any_one prints one probability (like lesson 4’s p_ge).
Try this
- Match The Pool with
dice_pool(n, 6).p_any(1)in a loop. - Output
5d10.count(8..)and read how often you get 0, 1, … successes.
how_many_high · DieRoll · mean 1.000
| outcome | % | frac | X/27 |
|---|---|---|---|
| 0 | 29.6 | 8/27 | 8 |
| 1 | 44.4 | 4/9 | 12 |
| 2 | 22.2 | 2/9 | 6 |
| 3 | 3.70 | 1/27 | 1 |
any_one · Prob
| outcome | % | frac | X/27 |
|---|---|---|---|
| any_one | 30.6 | 11/36 | 8 |