Net.Bluewalk.DotNetUtils/Extensions/TimeSpanExtensions.cs
/// <summary>
/// Rounds the specified TimeSpan with rounding interval.
/// </summary>
/// <param name="time">The time.</param>
/// <returns>TimeSpan.</returns>
Rounds the specified TimeSpan with rounding interval.
Rounds the specified TimeSpan with rounding interval .
public static TimeSpan Random(this TimeSpan time)
        {
            var seconds = time.TotalSeconds * StaticRandom.Instance.NextDouble();
            return TimeSpan.FromSeconds(seconds);
        }
public static TimeSpan Random ( this TimeSpan time ) { var seconds = time . TotalSeconds * StaticRandom . Instance . NextDouble ( ) ; return TimeSpan . FromSeconds ( seconds ) ; }
Rounds the specified TimeSpan with rounding interval.
Rounds the specified TimeSpan with rounding interval .
None
TimeSpan
this
time
None