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