IRandom Source Factory<TRandom> Interface
Defines a factory interface for creating and copying random number generators.
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
public interface IRandomSourceFactory<out TRandom>
Type Parameters
- TRandom
- The type of random number generator.
Remarks
This interface provides a typed factory pattern for creating and copying RNGs. It is used by the generic stream creation APIs in RandomStreams and by RandomStreamTree<TRandom> and RandomStreamPartition<TRandom>.
The static Create method is only available on target frameworks that support static abstract interface members (.NET 8.0+).