IRandomEngine.Seed Method

Initializes the engine state from a seed sequence.

Definition

Namespace: Numerics.NET.Random.Engines
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
void Seed(
	SeedSequence seed
)

Parameters

seed  SeedSequence
The seed sequence providing a deterministic entropy stream of UInt32 values.

Remarks

The engine consumes as many UInt32 values from the seed sequence as needed to fully initialize its state. After seeding, subsequent output is deterministically defined and immediately well-defined without requiring an extra "priming" step.

Exceptions

ArgumentNullException Thrown when seed is null.

See Also