Dice.D20
Static Method in Dice
Declaration
public static int D20()Description
Rolls a 20-sided dice [1..20].
Returns
| int | A random number on a 20-sided dice [1..20]. |
Overload
Declaration
public static int D20(int n)Description
Rolls a 20-sided dice [1..20] n times.
Parameters
| n | The number of times to roll the dice. |
Returns
| int | The sum of the rolls. |