RanLux24 Constructor

Definition

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

Overload List

RanLux24() Constructs a new RanLux random number generator using the default seed and luxury level.
RanLux24(Int32) Constructs a new RanLux random number generator using the specified seed and the default luxury level.
RanLux24(RanLuxLuxuryLevel) Constructs a new RanLux random number generator using the default seed and the specified luxury level.
RanLux24(Int32, RanLuxLuxuryLevel) Constructs a new RanLux random number generator using the specified seed and custom luxury level.

RanLux24

Constructs a new RanLux random number generator using the default seed and luxury level.
C#
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)

Constructs a new RanLux random number generator using the specified seed and the default luxury level.
C#
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)

Constructs a new RanLux random number generator using the default seed and the specified luxury level.
C#
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

ArgumentOutOfRangeException

luxuryLevel is less than 1 or greater than 397.

RanLux24(Int32, RanLuxLuxuryLevel)

Constructs a new RanLux random number generator using the specified seed and custom luxury level.
C#
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

ArgumentOutOfRangeException

luxuryLevel is less than 1 or greater than 397.

See Also