A Random Number Generator (RNG)
Syntax
public interface IRngMethods
| Name | Return Value | Summary |
|---|---|---|
| Fill | void | Completely fills the span with random bytes. |
| NextUInt32 | uint | Returns the next 32 bits in the sequence as a UInt32. |
| NextUInt64 | ulong | Returns the next 64 bits in the sequence as a UInt64. |
Extension Methods
| Name | Value | Summary |
|---|---|---|
| Sample | TResult | Samples the distribution from rng. From RngExtensions |
| Sample | TResult | Samples the distribution from rng. From RngExtensions |
| ShuffleInPlace | void | Shuffles a list using the in-place Fisher-Yates shuffling algorithm. From RngExtensions |