Samples the distribution from rng.
- Namespace
- RandN
- Containing Type
- RngExtensions
Syntax
public static TResult Sample<TRng, TResult>(this TRng rng, IDistribution<TResult> distribution) 
 where TRng : IRng
Remarks
The is equivalent to calling
Sample<TRng>(TRng)
.Type Parameters
Name | Description |
---|---|
TRng | |
TResult |
Parameters
Name | Type | Description |
---|---|---|
rng | TRng | |
distribution | IDistribution |
Return Value
Type | Description |
---|---|
TResult |