Attempts to sample a value from rng once, returning false if the value returned is not suitable.
- Namespace
- RandN
.Distributions - Containing Type
- Uniform
.TimeSpan - Implements
- IDistribution
<TimeSpan> .TrySample <TRng> (TRng, TimeSpan)
- IDistribution
Syntax
public bool TrySample<TRng>(TRng rng, out TimeSpan result) where TRng : notnull, IRngType Parameters
| Name | Description |
|---|---|
| TRng |
Parameters
| Name | Type | Description |
|---|---|---|
| rng | TRng | |
| result | TimeSpan |
Return Value
| Type | Description |
|---|---|
| bool |