/// <summary>
 /// Returns random date from specified range.
 /// </summary>
 /// <returns>Random date from specified range.</returns>
 public override DateTime GetRandom()
 {
     return(Min.AddMilliseconds((Max - Min).TotalMilliseconds * random.NextDouble()));
 }
예제 #2
0
 public static Epoch FromMilliseconds(double timestamp)
 {
     return(new Epoch(Min.AddMilliseconds(timestamp)));
 }