Attempts to sample a value from rng once, returning false if the value returned is not suitable.
- Namespace
- RandN
.Distributions .UnitInterval - Containing Type
- Closed
.Decimal - Implements
- IDistribution
<decimal> .TrySample <TRng> (TRng, decimal)
- IDistribution
Syntax
public bool TrySample<TRng>(TRng rng, out decimal result) where TRng : notnull, IRng
Type Parameters
Name | Description |
---|---|
TRng |
Parameters
Name | Type | Description |
---|---|---|
rng | TRng | |
result | decimal |
Return Value
Type | Description |
---|---|
bool |