A uniform distribution of type
System.TimeSpan.- Namespace
- RandN
.Distributions - Interfaces
- IDistribution
<TimeSpan>
- IDistribution
- Base Types
- object
- ValueType
Syntax
public readonly struct UniformTimeSpan : ValueType, IDistribution<TimeSpan>Methods
| Name | Return Value | Summary |
|---|---|---|
| Create | UniformTimeSpan | Creates a UniformTimeSpan with an exclusive upper bound. Should not be used directly; instead, use New(TimeSpan, TimeSpan).static |
| CreateInclusive | UniformTimeSpan | Creates a UniformTimeSpan with an exclusive lower bound. Should not be used directly; instead, use NewInclusive(TimeSpan, TimeSpan).static |
| Sample | TimeSpan | Samples a value from rng, blocking until a suitable value is returned. |
| TrySample | bool | Attempts to sample a value from rng once, returning false if the value returned is not suitable. |