Ran |
Notes: - NOT RECOMENDED FOR SERIOUS APPLICATIONS.
public class Ran005 : RandomGenerator
The Ran005 type exposes the following members.
Name | Description | |
---|---|---|
Ran005 | Initializes a new instance of the Ran005 class | |
Ran005(UInt32) | Initializes a new instance of the Ran005 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) |
Just use it for comparison purposes, etc. - As you see the spacing of the numbers is very coarse. - Low order correlations are present. - The period is effectively infinite. - At least 32 bit long int is required. - Corresponds to generator "ran2" of W. H. Press, B. P. Flannery, S. A. Teukolsky, W. T. Vetterling, Numerical Recipies in C, Cambridge Univ. Press, 1988. - The generator is based upon D. H. Knuth: The Art of Computer Programming, Vol.2, 2nd ed., 1981.