/// <summary> /// Gets the next random integer between the specified range of values. /// </summary> /// <param name="range">A range representing the inclusive minimum and maximum values.</param> /// <returns>A random integer between the specified minumum and maximum values.</returns> public int Next(Range <int> range) { return(Next(range.Min, range.Max)); }
/// <summary> /// Gets the next random single value between the specified range of values. /// </summary> /// <param name="range">A range representing the inclusive minimum and maximum values.</param> /// <returns>A random single value between the specified minimum and maximum values.</returns> public float NextSingle(Range <float> range) { return(NextSingle(range.Min, range.Max)); }