Represents a pseudo-random number generator
Namespace: Extreme.Statistics.Random
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public NotInheritable Class RanLux _ Inherits ExtendedRandom |
| C# |
|---|
public sealed class RanLux : ExtendedRandom |
| C++ |
|---|
public ref class RanLux sealed : public ExtendedRandom |
Methods
| Icon | Type | Description |
|---|---|---|
| Equals(Object) | ||
| Fill(Double[]()) |
Fills a Double array with random numbers.
| |
| Fill(Vector) |
Fills a Vector with random numbers.
| |
| Fill(Double[](), Int32, Int32) |
Fills a Double array with random numbers.
| |
| Fill(Double[](), ContinuousDistribution) |
Fills a Double array with random samples from the specified distribution.
| |
| Fill(Vector, ContinuousDistribution) |
Fills a Vector with random samples from the specified distribution.
| |
| Fill(Double[](), Int32, Int32, ContinuousDistribution) |
Fills a Double array with random samples from the specified distribution.
| |
| Fill(Int32[]()) |
Fills an Int32 array with random numbers.
| |
| Fill(Int32[](), Int32, Int32) |
Fills an Int32 array with random numbers.
| |
| Fill(Int32[](), DiscreteDistribution) |
Fills an Int32 array with random samples from the specified distribution.
| |
| Fill(Vector, DiscreteDistribution) |
Fills a Vector with random samples from the specified distribution.
| |
| Fill(Int32[](), Int32, Int32, DiscreteDistribution) |
Fills an Int32 array with random samples from the specified distribution.
| |
| Finalize() | ||
| GetHashCode() | Serves as a hash function for a particular type. | |
| GetType() | Gets the Type of the current instance. | |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| Next(DiscreteDistribution) |
Returns a sample from the specified distribution.
| |
| Next(Int32, Int32) | Returns a random number within a specified range. | |
| Next(Int32) | Returns a nonnegative random number less than the specified maximum. | |
| NextBytes(Byte[]()) |
Fills the elements of a specified array of bytes with random numbers.
| |
| NextDouble(ContinuousDistribution) |
Returns a sample from the specified distribution.
| |
| Sample() |
Returns a random number between 0 and 1.
| |
| ToString() |
Constructors
| Icon | Type | Description |
|---|---|---|
| RanLuxNew() |
Constructs a new RanLux random number generator
using the default seed and luxury level.
| |
| RanLuxNew(Int32) |
Constructs a new RanLux random number generator
using the specified seed and the default luxury level.
| |
| RanLuxNew(RanLuxLuxuryLevel) |
Constructs a new RanLux random number generator
using the default seed and the specified luxury level.
| |
| RanLuxNew(Int32, RanLuxLuxuryLevel) |
Constructs a new RanLux random number generator
using the specified seed and custom luxury level.
|
Properties
| Icon | Type | Description |
|---|---|---|
| LuxuryLevel |
Gets the luxury level for the random number generator.
|
Remarks
Use the RanLux class to represent a pseudo-random number
generator based on M. Luescher's second generation version of the RANLUX
random number generator.
The RanLux generator produces random blocks of 24 bits. It has a period of over 10166.
RanLux can be used in place of the Random class to obtain pseudo-random numbers of a higher quality.
References: M. Leuscher, "A portable high-quality random number random for lattice field theory calculations", Computer Physics Communications, 79 (1994) 100-110.F. James, "RANLUX: A Fortran implementation of the high-quality pseudo-random number generator of Leuscher", Computer Physics Communications, 79 (1994) 111-114.
Inheritance Hierarchy
System.Object
System.Random
Extreme.Statistics.Random.ExtendedRandom
Extreme.Statistics.Random.RanLux
System.Random
Extreme.Statistics.Random.ExtendedRandom
Extreme.Statistics.Random.RanLux