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

Syntax

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

Type Parameters

NameDescription
TRng

Parameters

NameTypeDescription
rngTRng
resultlong

Return Value

TypeDescription
bool