Sample<TRng>(TRng) Method
Samples a value from rng, blocking until a suitable value is returned.
Namespace
RandN
Containing Type
IDistribution<TResult>

Syntax

TResult Sample<TRng>(TRng rng) where TRng : notnull, IRng

Remarks

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

NameDescription
TRng

Parameters

NameTypeDescription
rngTRng

Return Value

TypeDescription
TResult