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

Syntax

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

Type Parameters

NameDescription
TRng

Parameters

NameTypeDescription
rngTRng
resultbool

Return Value

TypeDescription
bool