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