How dice rolls are calculated
Each die is rolled independently with crypto randomness. The total adds all visible dice results and then applies the modifier you enter.
This dice roller handles the seven standard tabletop dice — d4, d6, d8, d10, d12, d20, and d100 — and supports rolling up to forty dice of the same size at once with an optional modifier added to the total. That covers the common dice notation used in Dungeons and Dragons, Pathfinder, and most modern tabletop RPGs: a 2d6 attack, a 3d6+2 healing roll, a 4d10 damage spike, an advantage check expressed as two d20s, or a percentile d100 for a random encounter table. The full string of what you are rolling is rebuilt on the button label so you can sanity-check it before pressing Roll.
Each die is rolled independently with crypto.getRandomValues, then the individual results are added together and the modifier is applied to the sum. That matches dice notation exactly: 3d6+2 means three independent six-sided dice plus two, not a single roll of a virtual eighteen-sided die. The individual face values appear in a small panel under the total, so you can spot a critical hit, a fumble, or the lowest die in an advantage roll without doing the math twice.
The setup — die size, quantity, and modifier — is captured in the URL so a shared link to a 4d6+3 ability score roll, or to a 1d20 saving throw page, opens with the right configuration already loaded. The page is built for table speed: the dice selector is a single row, the modifier and quantity are number fields, and the roll button itself shows the notation it will produce.