/// <summary> /// Returns a random number /// </summary> /// <param name="max">Maximum number</param> /// <returns>Random number between 0 and the max</returns> public int RandomNumber(int max) { return(FeaturesHelper.IsEnabled(2) ? CalculatorsHelper.RandomNumber(max) : CalculatorsHelper.BadRandomNumber(max)); }
/// <summary> /// Get the remainder when a is divided by b /// </summary> /// <param name="a"></param> /// <param name="b"></param> /// <returns>a % b</returns> public int ModuloResult(int a, int b) { return(CalculatorsHelper.Modulo(a, b)); }