Mrg32k3a Constructor

Definition

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

Overload List

Mrg32k3a() Initializes a new instance of the Mrg32k3a class using OS entropy.
Mrg32k3a(RandomOptions) Initializes a new instance of the Mrg32k3a class with the specified options.
Mrg32k3a(ReadOnlySpan<Byte>) Initializes a new instance of the Mrg32k3a class from saved state.
Mrg32k3a(Int64, SeedProfile) Initializes a new instance of the Mrg32k3a class with the specified seed.
Mrg32k3a(ReadOnlySpan<UInt32>, SeedProfile) Initializes a new instance of the Mrg32k3a class with the specified seed array.
Mrg32k3a(Int64, StreamAddress, SeedProfile) Initializes a new instance of the Mrg32k3a class with the specified seed.
Mrg32k3a(ReadOnlySpan<UInt32>, StreamAddress, SeedProfile) Initializes a new instance of the Mrg32k3a class with the specified seed array.
Mrg32k3a(UInt32, UInt32, UInt32, UInt32, UInt32, UInt32) Initializes a new instance of the Mrg32k3a class from direct MRG32k3a state words.

Mrg32k3a

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

Mrg32k3a(RandomOptions)

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

Parameters

options  RandomOptions
 

Mrg32k3a(ReadOnlySpan<Byte>)

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

Parameters

state  ReadOnlySpan<Byte>
 

Mrg32k3a(Int64, SeedProfile)

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

Parameters

seed  Int64
 
seedProfile  SeedProfile  (Optional)
 

Mrg32k3a(ReadOnlySpan<UInt32>, SeedProfile)

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

Parameters

seedMaterial  ReadOnlySpan<UInt32>
 
seedProfile  SeedProfile  (Optional)
 

Mrg32k3a(Int64, StreamAddress, SeedProfile)

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

Parameters

seed  Int64
 
streamAddress  StreamAddress
 
seedProfile  SeedProfile  (Optional)
 

Mrg32k3a(ReadOnlySpan<UInt32>, StreamAddress, SeedProfile)

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

Parameters

seedMaterial  ReadOnlySpan<UInt32>
 
streamAddress  StreamAddress
 
seedProfile  SeedProfile  (Optional)
 

Mrg32k3a(UInt32, UInt32, UInt32, UInt32, UInt32, UInt32)

Initializes a new instance of the Mrg32k3a class from direct MRG32k3a state words.
C#
public Mrg32k3a(
	uint s10,
	uint s11,
	uint s12,
	uint s20,
	uint s21,
	uint s22
)

Parameters

s10  UInt32
The first state word of the first recurrence component.
s11  UInt32
The second state word of the first recurrence component.
s12  UInt32
The third state word of the first recurrence component.
s20  UInt32
The first state word of the second recurrence component.
s21  UInt32
The second state word of the second recurrence component.
s22  UInt32
The third state word of the second recurrence component.

Remarks

The first three state words must be less than 4294967087 and must not all be zero. The second three state words must be less than 4294944443 and must not all be zero.

See Also