Xoroshiro128PlusPlus Constructor

Definition

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

Overload List

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

Xoroshiro128PlusPlus

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

Xoroshiro128PlusPlus(RandomOptions)

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

Parameters

options  RandomOptions
 

Xoroshiro128PlusPlus(ReadOnlySpan<Byte>)

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

Parameters

state  ReadOnlySpan<Byte>
 

Xoroshiro128PlusPlus(Int64, SeedProfile)

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

Parameters

seed  Int64
 
seedProfile  SeedProfile  (Optional)
 

Xoroshiro128PlusPlus(ReadOnlySpan<UInt64>, SeedProfile)

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

Parameters

seedMaterial  ReadOnlySpan<UInt64>
 
seedProfile  SeedProfile  (Optional)
 

Xoroshiro128PlusPlus(UInt64, UInt64)

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

Parameters

s0  UInt64
First state word.
s1  UInt64
Second state word.

Remarks

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

Exceptions

ArgumentExceptionBoth state words are zero.

Xoroshiro128PlusPlus(Int64, StreamAddress, SeedProfile)

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

Parameters

seed  Int64
 
streamAddress  StreamAddress
 
seedProfile  SeedProfile  (Optional)
 

Xoroshiro128PlusPlus(ReadOnlySpan<UInt64>, StreamAddress, SeedProfile)

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

Parameters

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

See Also