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