GFSR 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
| GFS | Initializes a new instance of the Gsfr class using OS entropy. |
| GFS | Initializes a new instance of the Gsfr class with the specified seed array. |
| GFS | Initializes a new instance of the Gsfr class with the specified options. |
| GFS | Initializes a new instance of the Gsfr class from saved state. |
| GFS | Initializes a new instance of the Gsfr class with the specified seed. |
| GFS | Initializes a new instance of the Gsfr class with the specified seed array. |
| GFS | Initializes a new instance of the Gsfr class with the specified seed. |
| GFS | Initializes a new instance of the Gsfr class with the specified seed array. |
GFSR
Initializes a new instance of the Gsfr class using OS entropy.
public GFSR()GFSR(Int32[])
Initializes a new instance of the Gsfr class with the specified seed array.
public GFSR(
int[] seeds
)Parameters
- seeds Int32[]
- An array of numbers used to calculate a starting value for the pseudo-random number sequence.
Exceptions
| Argument | seeds is null. |
GFSR(RandomOptions)
Initializes a new instance of the Gsfr class with the specified options.
public GFSR(
RandomOptions options
)Parameters
- options RandomOptions
- The initialization options containing seed, stream ID, and seed profile.
GFSR(ReadOnlySpan<Byte>)
Initializes a new instance of the Gsfr class from saved state.
GFSR(Int64, SeedProfile)
Initializes a new instance of the Gsfr class with the specified seed.
public GFSR(
long seed,
SeedProfile seedProfile = SeedProfile.Default
)Parameters
- seed Int64
- A number used to calculate a starting value for the pseudo-random number sequence.
- seedProfile SeedProfile (Optional)
- The seed profile to use for initialization.
GFSR(ReadOnlySpan<UInt32>, SeedProfile)
Initializes a new instance of the Gsfr class with the specified seed array.
public GFSR(
ReadOnlySpan<uint> seedMaterial,
SeedProfile seedProfile = SeedProfile.Default
)Parameters
- seedMaterial ReadOnlySpan<UInt32>
- An array of numbers used to calculate a starting value for the pseudo-random number sequence.
- seedProfile SeedProfile (Optional)
- The seed profile to use for initialization.
Exceptions
| Argument | seedMaterial is null. |
GFSR(Int64, StreamAddress, SeedProfile)
Initializes a new instance of the Gsfr class with the specified seed.
public GFSR(
long seed,
StreamAddress streamAddress,
SeedProfile seedProfile = SeedProfile.Default
)Parameters
- seed Int64
- A number used to calculate a starting value for the pseudo-random number sequence.
- streamAddress StreamAddress
- Optional stream identifier for stream selection.
- seedProfile SeedProfile (Optional)
- The seed profile to use for initialization.
GFSR(ReadOnlySpan<UInt32>, StreamAddress, SeedProfile)
Initializes a new instance of the Gsfr class with the specified seed array.
public GFSR(
ReadOnlySpan<uint> seedMaterial,
StreamAddress streamAddress,
SeedProfile seedProfile = SeedProfile.Default
)Parameters
- seedMaterial ReadOnlySpan<UInt32>
- An array of numbers used to calculate a starting value for the pseudo-random number sequence.
- streamAddress StreamAddress
- Optional stream identifier for stream selection.
- seedProfile SeedProfile (Optional)
- The seed profile to use for initialization.
Exceptions
| Argument | seedMaterial is null. |