Pcg 64 Constructor
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
Overload List
| Pcg64() | Initializes a new instance of the Pcg64 class using OS entropy. |
| Pcg64( | Initializes a new instance of the Pcg64 class with the specified options. |
| Pcg64( | Initializes a new instance of the Pcg64 class from saved state. |
| Pcg64( | Initializes a new instance of the Pcg64 class with direct state initialization. |
| Pcg64( | Initializes a new instance of the Pcg64 class with the specified seed. |
| Pcg64( | Initializes a new instance of the Pcg64 class with the specified seed array. |
| Pcg64( | Initializes a new instance of the Pcg64 class with direct state and stream initialization. |
| Pcg64( | Initializes a new instance of the Pcg64 class with direct state and stream initialization. |
| Pcg64( | Initializes a new instance of the Pcg64 class with the specified seed. |
| Pcg64( | Initializes a new instance of the Pcg64 class with the specified seed array. |
| Pcg64( | Initializes a new instance of the Pcg64 class with direct state and stream initialization. |
Pcg64
Initializes a new instance of the Pcg64 class using OS entropy.
public Pcg64()Pcg64(RandomOptions)
Initializes a new instance of the Pcg64 class with the specified options.
Pcg64(ReadOnlySpan<Byte>)
Initializes a new instance of the Pcg64 class from saved state.
Pcg64(UInt64)
Initializes a new instance of the Pcg64 class with direct state initialization.
Remarks
This constructor directly sets the internal 128-bit state and stream (0), matching the canonical PCG64 initialization.
Pcg64(Int64, SeedProfile)
Initializes a new instance of the Pcg64 class with the specified seed.
public Pcg64(
long seed,
SeedProfile seedProfile = SeedProfile.Default
)Parameters
- seed Int64
- seedProfile SeedProfile (Optional)
Pcg64(ReadOnlySpan<UInt64>, SeedProfile)
Initializes a new instance of the Pcg64 class with the specified seed array.
public Pcg64(
ReadOnlySpan<ulong> seedMaterial,
SeedProfile seedProfile = SeedProfile.Default
)Parameters
- seedMaterial ReadOnlySpan<UInt64>
- seedProfile SeedProfile (Optional)
Pcg64(UInt128, UInt128)
Initializes a new instance of the Pcg64 class with direct state and stream initialization.
public Pcg64(
UInt128 state,
UInt128 stream
)Parameters
Remarks
This constructor directly sets the internal 128-bit state and stream, matching the canonical PCG64 initialization.
Pcg64(UInt64, UInt64)
Initializes a new instance of the Pcg64 class with direct state and stream initialization.
public Pcg64(
ulong state,
ulong stream
)Parameters
Remarks
This constructor directly sets the internal 128-bit state and stream, matching the canonical PCG64 initialization.
Pcg64(Int64, StreamAddress, SeedProfile)
Initializes a new instance of the Pcg64 class with the specified seed.
public Pcg64(
long seed,
StreamAddress streamAddress,
SeedProfile seedProfile = SeedProfile.Default
)Parameters
- seed Int64
- streamAddress StreamAddress
- seedProfile SeedProfile (Optional)
Pcg64(ReadOnlySpan<UInt64>, StreamAddress, SeedProfile)
Initializes a new instance of the Pcg64 class with the specified seed array.
public Pcg64(
ReadOnlySpan<ulong> seedMaterial,
StreamAddress streamAddress,
SeedProfile seedProfile = SeedProfile.Default
)Parameters
- seedMaterial ReadOnlySpan<UInt64>
- streamAddress StreamAddress
- seedProfile SeedProfile (Optional)
Pcg64(UInt64, UInt64, UInt64, UInt64)
Initializes a new instance of the Pcg64 class with direct state and stream initialization.
public Pcg64(
ulong stateLo,
ulong stateHi,
ulong streamLo,
ulong streamHi
)Parameters
Remarks
This constructor directly sets the internal 128-bit state and stream, matching the canonical PCG64 initialization.