Ran |
public class Ran056 : RandomGenerator
The Ran056 type exposes the following members.
| Name | Description | |
|---|---|---|
| Ran056 | Initializes a new instance of the Ran056 class. | |
| Ran056(UInt32) | Initializes a new instance of the Ran056 class with a specified seed. |
| Name | Description | |
|---|---|---|
| Maximum | The maximum value of the random number which can be returned. (Inherited from RandomGenerator) | |
| Seed | Gets the current 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 | The generation function. (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) |
- At least 32 bit long int is required, but works with any larger
word lengths
- This is the same lagged Fibonacci generator as Ran055
x(n) = ( x(n-55) - x(n-24) ) mod 2^31
- but a decimation strategy is applied to remove the known
correlations. Only every 3rd number will be used:
- Reference:
I. Vattulainen, T. Ala-Nissila, and K. Kankaala,
Physical Tests for Random Numbers in Simulations,
Phys. Rev. Lett. 73, 2513 (1994).