A non-cryptographically secure RNG with good performance and output quality, while requiring limited memory.
Syntax
public sealed class SmallRng : IRng
Methods
Name | Return Value | Summary |
---|---|---|
Create | SmallRng | Creates a StandardRng .static |
Fill | void | Completely fills the span with random bytes. |
GetFactory | SmallRng | Gets the StandardRng factory.static |
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 |
---|---|---|
ShuffleInPlace | void | Shuffles a list using the in-place Fisher-Yates shuffling algorithm. From RngExtensions |
ShuffleInPlace | void | Shuffles a span using the in-place Fisher-Yates shuffling algorithm. From RngExtensions |