Random Options.Seed Is Scalar Property
Gets whether the seed was provided as a scalar value (uint or ulong)
rather than as an array.
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 bool SeedIsScalar { get; }Property Value
BooleanRemarks
This flag preserves the user's intent when providing seed material. Some RNGs (notably Mersenne Twister) have different initialization paths for scalar seeds vs array seeds, even when the array has length 1.
For most RNGs, this flag is ignored and has no effect on initialization.
Scalar seeds (SeedIsScalar = true):
- uint seed
- ulong seed
Array seeds (SeedIsScalar = false):
- uint[] seedArray
- ulong[] seedArray
- even if the array has length 1