Random Options Structure
Immutable initialization options for 64-bit random number generators.
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
public readonly struct RandomOptionsRemarks
RandomOptions is the sole carrier of initialization policy for 64-bit RNGs. It is used only during construction and is not stored in RNG instances.
All RNGs must accept a RandomOptions parameter in their advanced constructor and use it to initialize their internal state.
Key principles:
- Immutable value type - cannot be modified after creation
- Used only during initialization - not stored in RNG instances
- No RNG-specific extensions allowed at this stage
- Validation performed at public API boundaries
Constructors
| Random | Constructs a new RandomOptions with the specified parameters. |
| Random | Constructs a new RandomOptions with a uint[] seed array. |
| Random | Constructs a new RandomOptions with the specified parameters. |
Properties
| Seed | Gets the canonical seed value used for initialization. |
| Seed | Gets whether the seed was provided as a scalar value (uint or ulong) rather than as an array. |
| Seed | Gets the canonical seed material as 32-bit words. |
| Seed | Gets the seed profile used for initialization. |
| Stream | Gets the stream address used for stream selection. |
Methods
| Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType) |
| Get | Returns the hash code for this instance. (Inherited from ValueType) |
| Get | Gets the Type of the current instance. (Inherited from Object) |
| ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType) |
| With | Creates a new RandomOptions with the specified stream address, preserving all other settings. |
Extension Methods
| With |
Creates a new RandomOptions configured for ChaCha with the specified number of rounds.
(Defined by RandomOptionsExtensions) |
| With |
Creates a new RandomOptions configured for ChaCha with the specified number of rounds.
(Defined by RandomOptionsExtensions) |