User guide All lessons Cookbook Function reference Open playground

Meet or beat a target

At the table

You roll 2d10 with a +3 bonus and need a total of 15 or higher to succeed. You want one number: how often that happens.

Try it

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

The script

roll = 2d10 + 3
output("p_at_least_15", roll.p_ge(15))

p_at_least_15 · Prob

outcome%fracX
p_at_least_1545.09/200.450