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

Syntax

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

Type Parameters

NameDescription
TRng

Parameters

NameTypeDescription
rngTRng
resultfloat

Return Value

TypeDescription
bool