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