"

IDistribution<TResult>.

TrySample<TRng>(TRng, TResult) Method

Summary

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
Containing Type
IDistribution<TResult>

Syntax

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

Type Parameters

NameDescription
TRng

Parameters

NameTypeDescription
rngTRng
resultTResult

Return Value

TypeDescription
bool