TrySample<TRng>(TRng, int) 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
Containing Type
Uniform.Int32
Implements

Syntax

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

Type Parameters

NameDescription
TRng

Parameters

NameTypeDescription
rngTRng
resultint

Return Value

TypeDescription
bool