/// <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())); }
public static Epoch FromMilliseconds(double timestamp) { return(new Epoch(Min.AddMilliseconds(timestamp))); }