Dice and modifier arithmetic
Set the number of dice, choose a side count from d4 through d100, and provide a modifier if needed. For n dice with s sides, the roller produces n face values from 1 through s. Their subtotal ranges from n through n x s. Adding modifier m shifts the possible final range to n + m through n x s + m.