Exemple #1
0
 /// <summary>
 /// Rolls a six sided dice that is weighted/unfair
 /// </summary>
 /// <returns></returns>
 public static int RollWeightedFourSidedDice()
 {
     return(RndHelp.Choose(1, 2, 3, 3, 4, 4));
 }
Exemple #2
0
 /// <summary>
 /// Rolls a dice with n number of sides
 /// </summary>
 /// <param name="n">Number of sides of the dice</param>
 /// <returns>Random number between 1 and n (excl)</returns>
 public static int RollDiceOfSides(int n)
 {
     return(RndHelp.Next(1, n + 1));
 }