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