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