TrySample<TRng>(TRng, double) Method
Attempts to sample a value from rng once, returning false if the value returned is not suitable.
Namespace
RandN.Distributions
Containing Type
UniformDouble
Implements

Syntax

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

Type Parameters

NameDescription
TRng

Parameters

NameTypeDescription
rngTRng
resultdouble

Return Value

TypeDescription
bool