Ran |
public class Ran002 : RandomGenerator
The Ran002 type exposes the following members.
Name | Description | |
---|---|---|
Ran002 | Initializes a new instance of the Ran002 class | |
Ran002(UInt32) | Initializes a new instance of the Ran002 class |
Name | Description | |
---|---|---|
Maximum | The maximum value of the random number which can be returned. (Inherited from RandomGenerator) | |
Seed | The seed value. (Inherited from RandomGenerator) |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
Long | (Overrides RandomGeneratorLong) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Name | Description | |
---|---|---|
max_val | Uniform long int values within [0...max_val]. (Inherited from RandomGenerator) | |
seed | The seed of the random generator. (Inherited from RandomGenerator) |
Reference: (1) This is the long period ( > 2.3 * 10^18 ) random number generator of P. L'Ecuyer, Commun. ACM 31, 743 (1988), but with Bays-Durham shuffle and "added safeguards" as proposed by (2) William H. Press and Saul A. Teukolsky, "Portable Random Number Generators", Computers in Phyics, Vol. 6, No. 5, Sep/Oct 1992, Algorithm "ran2" (3) This generator has been validated also by G. Marsaglia and A. Zaman, "Some portable very-long-period random number generators", Computers in Physics, Vol. 8, No. 1, Jan/Feb 1994. Notes: - William Press and Saul Teukolsky think that this is a "perfect" random generator and will pay $1000 for the first one who convinces them otherwise.