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