Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <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));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Returns a non-negative random long.
 /// </summary>
 /// <returns></returns>
 public static long Long()
 {
     return(Arbitrary.Int64(0, long.MaxValue));
 }