Ejemplo n.º 1
0
 /// <summary>
 /// Returns a random DateTime greater or equal to DateTime.Now and less than
 /// DateTime.MaxValue
 /// </summary>
 /// <param name="r"></param>
 /// <returns></returns>
 public static DateTime NextDateTime(this IRandomizer r) => r.NextDateTime(DateTime.Now, DateTime.MaxValue);
Ejemplo n.º 2
0
 /// <summary>
 /// Returns a random DateTime greater or equal to DateTime.Now and less than
 /// the supplied endDateTime
 /// </summary>
 /// <param name="r"></param>
 /// <param name="endDateTime"></param>
 /// <returns></returns>
 public static DateTime NextDateTime(this IRandomizer r, DateTime endDateTime) => r.NextDateTime(DateTime.Now, endDateTime);