The Dungeons and Dragons dice function is a virtual dice that also let the user choose a type of dice to be rolled (e.g. 20 sided dice), provide a modifier, a number of rolls and whether the roll is for an Advantage, Disadvantage or None.
INSTRUCTIONS: Enter the following:
DnD Rolls: The virtual dice returns a list of rolls where there is a random dice roll from 1 to D and the user specified number added. Note: Advantage and Disadvantage rolls default to D20 dice and two (n=2) rolls.
The Dungeons and Dragons utility generates a random number between 1 and D (e.g. 20). It then adds the Modifier (M) to the random number and returns it. It does this repeatedly for each roll (n).
If there is an Advantage, there will be two (n=2) rolls of a D20 dice and the greater number of the two is added to the Adder.
If there is a Disadvantage, there will be two (n=2) rolls of a D20 dice and the lesser number of the two is added to the Adder.