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 .UnitInterval - Containing Type
- Closed
.Double - Implements
- IDistribution
<double> .TrySample <TRng> (TRng, double)
- IDistribution
Syntax
public bool TrySample<TRng>(TRng rng, out double result) where TRng : notnull, IRng
Type Parameters
Name | Description |
---|---|
TRng |
Parameters
Name | Type | Description |
---|---|---|
rng | TRng | |
result | double |
Return Value
Type | Description |
---|---|
bool |