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))

Reading the result

In the text tab, a line like output p_at_least_15: P=0.… is your success chance (between 0 and 1).

Try this

This lesson is about the total after the roll. Pool games (“any die shows a 1”) use p_any on a DicePool in lesson 9.

Builtin details: function reference.

p_at_least_15 · Prob

outcome%fracX
p_at_least_1545.09/200.450