GfsrGenerator Constructor

Definition

Namespace: Extreme.Mathematics.Random
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

GfsrGenerator() Initializes a new instance of the GfsrGenerator class using a time-dependent default seed value.
GfsrGenerator(Int32) Initializes a new instance of the GfsrGenerator class using the specified seed value.
GfsrGenerator(Int32[]) Initializes a new instance of the GfsrGenerator class using the specified seed array of seed values.

GfsrGenerator

Initializes a new instance of the GfsrGenerator class using a time-dependent default seed value.
C#
public GfsrGenerator()

Remarks

Although the seed value is time-dependent, it may not change fast enough to be different on successive invocations. To ensure two or more random sequences are different, provide different seed values explicitly.

GfsrGenerator(Int32)

Initializes a new instance of the GfsrGenerator class using the specified seed value.
C#
public GfsrGenerator(
	int seed
)

Parameters

seed  Int32
A number used to calculate a starting value for the pseudo-random number sequence.

Remarks

Different seeds produce different random sequences. You can produce the same sequence repeatedly by providing the same seed value each time.

GfsrGenerator(Int32[])

Initializes a new instance of the GfsrGenerator class using the specified seed array of seed values.
C#
public GfsrGenerator(
	int[] seedArray
)

Parameters

seedArray  Int32[]
An array of integers used to calculate a starting value for the pseudo-random number sequence.

Remarks

Different seeds produce different random sequences. You can produce the same sequence repeatedly by providing the same seed value each time.

Exceptions

ArgumentNullExceptionseedArray is null.

See Also