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

Syntax

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

Type Parameters

NameDescription
TRng

Parameters

NameTypeDescription
rngTRng
resultuint

Return Value

TypeDescription
bool