Random Source<TGenerator>.Initialize Method
Initializes the generator based on the provided options.
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
protected abstract void Initialize(
in RandomOptions options,
ref TGenerator generator
)Parameters
- options RandomOptions
- The initialization options containing seed, stream ID, and seed profile.
- generator TGenerator
- A reference to the generator field to be initialized.
Remarks
This method is called exactly once by the base class constructors (except the state constructor which bypasses initialization). Implementations should:
- Create a seed sequence using options.CreateSeedSequence()
- Initialize the provided generator reference
- Handle RNG-specific standard initialization if needed