IRandomSourceFactory<TRandom>.Copy Method

Returns a deep copy of this RNG.

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
TRandom Copy()

Return Value

TRandom
A deep copy with the same runtime type and state.

Remarks

The returned instance must have the same runtime type as the original. The copy must be independent: advancing one RNG does not affect the other.

See Also