Pcg64Dxsm Constructor

Definition

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

Overload List

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

Pcg64Dxsm

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

Pcg64Dxsm(RandomOptions)

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

Parameters

options  RandomOptions
 

Pcg64Dxsm(ReadOnlySpan<Byte>)

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

Parameters

state  ReadOnlySpan<Byte>
 

Pcg64Dxsm(Int64, SeedProfile)

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

Parameters

seed  Int64
 
seedProfile  SeedProfile  (Optional)
 

Pcg64Dxsm(ReadOnlySpan<UInt64>, SeedProfile)

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

Parameters

seedMaterial  ReadOnlySpan<UInt64>
 
seedProfile  SeedProfile  (Optional)
 

Pcg64Dxsm(UInt128, UInt128)

Initializes a new instance of the Pcg64Dxsm class with direct state and stream initialization.
C#
public Pcg64Dxsm(
	UInt128 state,
	UInt128 stream
)

Parameters

state  UInt128
The 128-bit LCG state.
stream  UInt128
The 128-bit stream selector.

Remarks

This constructor directly sets the internal 128-bit state and stream using the cheap multiplier variant, matching the canonical PCG64-DXSM initialization.

Pcg64Dxsm(Int64, StreamAddress, SeedProfile)

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

Parameters

seed  Int64
 
streamAddress  StreamAddress
 
seedProfile  SeedProfile  (Optional)
 

Pcg64Dxsm(ReadOnlySpan<UInt64>, StreamAddress, SeedProfile)

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

Parameters

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

Pcg64Dxsm(UInt64, UInt64, UInt64, UInt64)

Initializes a new instance of the Pcg64Dxsm class with direct state and stream initialization.
C#
public Pcg64Dxsm(
	ulong stateLo,
	ulong stateHi,
	ulong streamLo,
	ulong streamHi
)

Parameters

stateLo  UInt64
Low 64 bits of the 128-bit LCG state.
stateHi  UInt64
High 64 bits of the 128-bit LCG state.
streamLo  UInt64
Low 64 bits of the stream selector.
streamHi  UInt64
High 64 bits of the stream selector.

Remarks

This constructor directly sets the internal 128-bit state and stream using the cheap multiplier variant, matching the canonical PCG64-DXSM initialization.

See Also