User guide All lessons Cookbook Function reference Open playground

Flat bonuses (2d10 + 5)

At the table

You roll 2d10, then add a flat +5 from a stat or spell—every possible total goes up by 5. Games usually write that as 2d10 + 5.

Try it

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

The script

roll = 2d10
output("roll_base", roll)
output("roll_plus_5", roll + 5)

roll_base · DieRoll · mean 11.000

outcome%fracX/100
21.001/1001
32.001/502
43.003/1003
54.001/254
65.001/205
76.003/506
87.007/1007
98.002/258
109.009/1009
1110.01/1010
129.009/1009
138.002/258
147.007/1007
156.003/506
165.001/205
174.001/254
183.003/1003
192.001/502
201.001/1001

roll_plus_5 · DieRoll · mean 16.000

outcome%fracX/100
71.001/1001
82.001/502
93.003/1003
104.001/254
115.001/205
126.003/506
137.007/1007
148.002/258
159.009/1009
1610.01/1010
179.009/1009
188.002/258
197.007/1007
206.003/506
215.001/205
224.001/254
233.003/1003
242.001/502
251.001/1001

Remember: + between two dice expressions (for example 1d6 + 1d6, same as 2d6) means independent dice summed, not a flat modifier. A plain number on the right—+ 5, + STAT—is the tabletop-style bonus.

Try this