What this roller is for
A physical die is still the right tool at a table that can see the roll. This page is for a solo prep session, a remote table that does not want another app, or a check you want to repeat while you learn the math. Each roll is independent. Nothing on the page is a "lucky streak" setting, and the history is only the line you just rolled.
Advantage and disadvantage on a d20 are usually "roll twice and keep one." When you ask for more than one die, this roller rolls two complete sets and keeps the set with the higher or lower total. That matches a handful of dice plus a modifier, such as 2d6+3 with advantage on both dice, better than it matches the special case of a single d20. For an ordinary attack, set the count to 1 and the sides to 20.
The DC line
If you type a difficulty class, the result says whether the total met it. The roller does not add proficiency, cover, or bless for you. Put those inside the modifier so the DC test stays honest. A blank DC skips the test. A natural 20 on an attack roll is still a special rule in combat; this page reports the number, and the table decides whether that number is a critical hit.
Limits that keep the page usable
Forty dice is enough for a fireball's 8d6 several times over, and it is low enough that the page stays responsive on a phone. Sides stop at 100 so a typo cannot ask the browser for a million-sided die. The generator is crypto.getRandomValues, which is the browser API meant for unpredictable integers. It is still software. If your table requires a shared visible roll, use a die everyone can see.
Related pages: the hit point calculator can roll hit dice level by level, and the scene sparks page uses the same generator to pick a prompt. Neither of those replaces an attack roll.
A short example
A longsword attack might be 1d20+6 against AC 15. You type 1, 20, and 6, and you set the DC to 15. A result of 18 is a hit. A result of 9 is a miss. Advantage rolls two d20s, adds 6 to each, and keeps the higher total. It does not add 6 twice to the same die.