Wy Rand Engine.Fill Method
Fills the destination span with successive native words from the engine's stream.
Definition
Namespace: Numerics.NET.Random.Engines
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
public void Fill(
Span<ulong> destination
)Parameters
Implements
IScalarEngine<T>.Fill(Span<T>)Remarks
This method is equivalent to repeatedly calling Next() and storing the returned values:
for (int i = 0; i < destination.Length; i++)
{
destination[i] = Next();
}
Implementations may optimize this operation (e.g., using loop unrolling or vectorization) as long as the produced sequence matches repeated Next() calls.