Ran Lux 24 Constructor
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Ran | Constructs a new RanLux random number generator using the default seed and luxury level. |
Ran | Constructs a new RanLux random number generator using the specified seed and the default luxury level. |
Ran | Constructs a new RanLux random number generator using the default seed and the specified luxury level. |
Ran | Constructs a new RanLux random number generator using the specified seed and custom luxury level. |
RanLux24
public RanLux24()
Remarks
Use this constructor to create a RanLux object with a time-dependent default seed and LuxuryLevel set to Default.
Although the seed value is time-dependent, it may not change fast enough to be different on successive invocations. To ensure two or more random sequences are different, provide different seed values explicitly.
RanLux24(Int32)
public RanLux24(
int seed
)
Parameters
- seed Int32
- An integer used to initialize the random number generator.
Remarks
Use this constructor to create a RanLux object with the specified seed and LuxuryLevel set to Default.
Different seeds produce different random sequences. You can produce the same sequence repeatedly by providing the same seed value each time.
RanLux24(RanLuxLuxuryLevel)
public RanLux24(
RanLuxLuxuryLevel luxuryLevel
)
Parameters
- luxuryLevel RanLuxLuxuryLevel
- A RanLuxLuxuryLevel value that indicates the quality of the pseudo-random number sequence.
Remarks
Use this constructor to create a RanLux object with a default seed value and the specified LuxuryLevel.
Exceptions
Argument | luxuryLevel is less than 1 or greater than 397. |
RanLux24(Int32, RanLuxLuxuryLevel)
public RanLux24(
int seed,
RanLuxLuxuryLevel luxuryLevel
)
Parameters
- seed Int32
- An integer used to initialize the random number generator.
- luxuryLevel RanLuxLuxuryLevel
- A RanLuxLuxuryLevel value that indicates the quality of the pseudo-random number sequence.
Remarks
Different seeds produce different random sequences. You can produce the same sequence repeatedly by providing the same seed value each time.
Exceptions
Argument | luxuryLevel is less than 1 or greater than 397. |