Random Stream Source<TRandom>.Create Child Method
Creates a child stream source with the specified index.
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
A new stream source representing the child scope.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
protected abstract IRandomStreamSource<TRandom> CreateChild(
ulong index,
bool consumeParentIndex
)Parameters
- index UInt64
- The child index to append to the current path.
- consumeParentIndex Boolean
- If true, increments the parent's next index after creating the child.
Return Value
IRandomStreamSource<TRandom>A new stream source representing the child scope.
Remarks
Derived classes must implement this method to create child scopes that maintain the appropriate state for their stream model (mixing-based or jump-based).