GFSR Constructor

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0

Overload List

GFSR() Initializes a new instance of the Gsfr class using OS entropy.
GFSR(Int32[]) Initializes a new instance of the Gsfr class with the specified seed array.
GFSR(RandomOptions) Initializes a new instance of the Gsfr class with the specified options.
GFSR(ReadOnlySpan<Byte>) Initializes a new instance of the Gsfr class from saved state.
GFSR(Int64, SeedProfile) Initializes a new instance of the Gsfr class with the specified seed.
GFSR(ReadOnlySpan<UInt32>, SeedProfile) Initializes a new instance of the Gsfr class with the specified seed array.
GFSR(Int64, StreamAddress, SeedProfile) Initializes a new instance of the Gsfr class with the specified seed.
GFSR(ReadOnlySpan<UInt32>, StreamAddress, SeedProfile) Initializes a new instance of the Gsfr class with the specified seed array.

GFSR

Initializes a new instance of the Gsfr class using OS entropy.
C#
public GFSR()

GFSR(Int32[])

Initializes a new instance of the Gsfr class with the specified seed array.
C#
public GFSR(
	int[] seeds
)

Parameters

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

Exceptions

ArgumentNullExceptionseeds is null.

GFSR(RandomOptions)

Initializes a new instance of the Gsfr class with the specified options.
C#
public GFSR(
	RandomOptions options
)

Parameters

options  RandomOptions
The initialization options containing seed, stream ID, and seed profile.

GFSR(ReadOnlySpan<Byte>)

Initializes a new instance of the Gsfr class from saved state.
C#
public GFSR(
	ReadOnlySpan<byte> state
)

Parameters

state  ReadOnlySpan<Byte>
 

GFSR(Int64, SeedProfile)

Initializes a new instance of the Gsfr class with the specified seed.
C#
public GFSR(
	long seed,
	SeedProfile seedProfile = SeedProfile.Default
)

Parameters

seed  Int64
A number used to calculate a starting value for the pseudo-random number sequence.
seedProfile  SeedProfile  (Optional)
The seed profile to use for initialization.

GFSR(ReadOnlySpan<UInt32>, SeedProfile)

Initializes a new instance of the Gsfr class with the specified seed array.
C#
public GFSR(
	ReadOnlySpan<uint> seedMaterial,
	SeedProfile seedProfile = SeedProfile.Default
)

Parameters

seedMaterial  ReadOnlySpan<UInt32>
An array of numbers used to calculate a starting value for the pseudo-random number sequence.
seedProfile  SeedProfile  (Optional)
The seed profile to use for initialization.

Exceptions

ArgumentNullExceptionseedMaterial is null.

GFSR(Int64, StreamAddress, SeedProfile)

Initializes a new instance of the Gsfr class with the specified seed.
C#
public GFSR(
	long seed,
	StreamAddress streamAddress,
	SeedProfile seedProfile = SeedProfile.Default
)

Parameters

seed  Int64
A number used to calculate a starting value for the pseudo-random number sequence.
streamAddress  StreamAddress
Optional stream identifier for stream selection.
seedProfile  SeedProfile  (Optional)
The seed profile to use for initialization.

GFSR(ReadOnlySpan<UInt32>, StreamAddress, SeedProfile)

Initializes a new instance of the Gsfr class with the specified seed array.
C#
public GFSR(
	ReadOnlySpan<uint> seedMaterial,
	StreamAddress streamAddress,
	SeedProfile seedProfile = SeedProfile.Default
)

Parameters

seedMaterial  ReadOnlySpan<UInt32>
An array of numbers used to calculate a starting value for the pseudo-random number sequence.
streamAddress  StreamAddress
Optional stream identifier for stream selection.
seedProfile  SeedProfile  (Optional)
The seed profile to use for initialization.

Exceptions

ArgumentNullExceptionseedMaterial is null.

See Also