RanLux Constructor

Definition

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

Overload List

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

RanLux

Constructs a new RanLux random number generator using the default seed and luxury level.
C#
public RanLux()

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.

RanLux(Int32)

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

RanLux(RanLuxLuxuryLevel)

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

RanLux(Int32, RanLuxLuxuryLevel)

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