Xoshiro256Plus Constructor

Definition

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

Overload List

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

Xoshiro256Plus

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

Xoshiro256Plus(RandomOptions)

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

Parameters

options  RandomOptions
 

Xoshiro256Plus(ReadOnlySpan<Byte>)

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

Parameters

state  ReadOnlySpan<Byte>
 

Xoshiro256Plus(Int64, SeedProfile)

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

Parameters

seed  Int64
 
seedProfile  SeedProfile  (Optional)
 

Xoshiro256Plus(ReadOnlySpan<UInt64>, SeedProfile)

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

Parameters

seedMaterial  ReadOnlySpan<UInt64>
 
seedProfile  SeedProfile  (Optional)
 

Xoshiro256Plus(Int64, StreamAddress, SeedProfile)

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

Parameters

seed  Int64
 
streamAddress  StreamAddress
 
seedProfile  SeedProfile  (Optional)
 

Xoshiro256Plus(ReadOnlySpan<UInt64>, StreamAddress, SeedProfile)

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

Parameters

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

Xoshiro256Plus(UInt64, UInt64, UInt64, UInt64)

Initializes a new instance of the Xoshiro256Plus class with direct state initialization.
C#
public Xoshiro256Plus(
	ulong s0,
	ulong s1,
	ulong s2,
	ulong s3
)

Parameters

s0  UInt64
First state word.
s1  UInt64
Second state word.
s2  UInt64
Third state word.
s3  UInt64
Fourth state word.

Remarks

This constructor directly sets the four 64-bit state words. The state must not be all zeros.

Exceptions

ArgumentExceptionAll state words are zero.

See Also