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