Ran |
public class Ran055 : RandomGenerator
The Ran055 type exposes the following members.
| Name | Description | |
|---|---|---|
| Ran055 | Initializes a new instance of the Ran055 class | |
| Ran055(UInt32) | Initializes a new instance of the Ran055 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) |
- The period is 2^55 = 36 028 797 018 963 968 > 3.6*10^16. - At least 32 bit long int is required, but works with any larger word lengths - This is a lagged Fibonacci generator: x(n) = ( x(n-55) - x(n-24) ) mod 2^31 - Reference: A version of this pseudrandom number generator is described in J. Bentley's column, "The Software Exploratorium", Unix Review 1991. It is based on Algorithm A in D. E. Knuth, The Art of Computer- Programming, Vol 2, Section 3.2.2, pp. 172