TrySample<TRng>(TRng, decimal) Method
Attempts to sample a value from rng once, returning false if the value returned is not suitable. If is returned, the value of result is unspecified.
Namespace
RandN.Distributions.UnitInterval
Containing Type
OpenClosed.Decimal
Implements

Syntax

public bool TrySample<TRng>(TRng rng, out decimal result) where TRng : notnull, IRng

Type Parameters

NameDescription
TRng

Parameters

NameTypeDescription
rngTRng
resultdecimal

Return Value

TypeDescription
bool