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