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