Dice.Roll
Static Method in Dice
Declaration
public static int Roll(int[] dice)
Description
Rolls a custom dice.
Parameters
dice | The numbered sides of the dice. |
Returns
int | A random number on the dice. |
Overload
Declaration
public static int Roll(int[] dice, int n)
Description
Rolls a custom dice n
amount of times.
Parameters
dice | The numbered sides of the dice. |
n | The number of times to roll the dice. |
Returns
int | The sum of the rolls. |