IReproducibleRngFactory<TRng, TSeed> Interface
A factory that produces reproducible Random Number Generators.
IReproducibleRngFactory<TRng, TSeed>
Mt1993764.Factory
ChaCha.Factory20
ChaCha.Factory8
Pcg32.Factory
ChaCha.Factory12
XorShift.Factory

Syntax

public interface IReproducibleRngFactory<TRng, TSeed> where TRng : IRng

Type Parameters

NameDescription
TRng
TSeed

Methods

NameReturn ValueSummary
Create(TSeed)TRng
Creates a new TRng using the specified seed.
CreateSeed<TSeedingRng>(TSeedingRng)TSeed
Creates a seed of type TSeed, that can then be used in the Create(TSeed) method to create a TRng.

Extension Methods

NameValueSummary
Create<TRng, TSeed, TSeedingRng>(TSeedingRng)TRng
Creates a new TRng using a seed created from seedingRng.