/// <summary> /// Returns a non-negative random long that is less than the specified maximum. /// </summary> /// <param name="maximum">The inclusive upper bound of the random number to be generated, maximum must be greater than or equal to 0.</param> /// <returns></returns> public static long Long(long maximum) { return(Arbitrary.Int64(0, maximum)); }
/// <summary> /// Returns a random long that is within a specified range. /// </summary> /// <param name="minimum">The inclusive lower bound of the random number returned.</param> /// <param name="maximum">The inclusive upper bound of the random number returned, [maximum] must be greater than or equal to [minimum].</param> /// <returns></returns> public static long Long(long minimum, long maximum) { return(Arbitrary.Int64(minimum, long.MaxValue)); }
/// <summary> /// Returns a non-negative random long. /// </summary> /// <returns></returns> public static long Long() { return(Arbitrary.Int64(0, long.MaxValue)); }