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