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 - Containing Type
- Uniform
.SByte - Implements
- IDistribution
<sbyte> .TrySample <TRng> (TRng, sbyte)
- IDistribution
Syntax
public bool TrySample<TRng>(TRng rng, out sbyte result) where TRng : notnull, IRngType Parameters
| Name | Description |
|---|---|
| TRng |
Parameters
| Name | Type | Description |
|---|---|---|
| rng | TRng | |
| result | sbyte |
Return Value
| Type | Description |
|---|---|
| bool |