Samples a value from rng, blocking until a suitable value is returned.
- Namespace
- RandN.Distributions 
- Containing Type
- Uniform.UInt64 
- Implements
- IDistribution<ulong> .Sample <TRng> (TRng) 
 
- IDistribution
Syntax
public ulong Sample<TRng>(TRng rng) where TRng : notnull, IRngRemarks
Depending on the distribution, this method could block indefinitely if the quality of the RNG is poor or if you're extraordinarily unlucky.
Type Parameters
| Name | Description | 
|---|---|
| TRng | 
Parameters
| Name | Type | Description | 
|---|---|---|
| rng | TRng | 
Return Value
| Type | Description | 
|---|---|
| ulong |