/// <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);
/// <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);