class
Random
(Return to index)
The CLASSIC random generator.
This generator is based on:
D. Knuth: The Art of Computer Programming, Vol. 2, 2nd edition.
Type: |
Instantiable |
Include file: |
./Utilities/Random.hh |
Synopsis (including inherited members):
Documentation:
- Public members:
-
Random
()
;
- Constructor with default seed.
-
Random
(int)
;
- Constructor with given seed.
The argument is the new seed, an integer in the range [0, 1000000000].
-
void gauss
(double&,double&)
;
- Gaussian distribution.
Return two real Gaussian pseudo-random numbers with unit standard
deviation. The values are placed in the two arguments.
-
void init55
(int)
;
- Initialise random number generator.
-
int integer
()
;
- Uniform distribution.
Return an integer pseudo-random number in the range [0,1000000000).
-
void reseed
(int)
;
- Set a new seed.
The argument is the new seed, an integer in the range [0, 1000000000].
-
double uniform
()
;
- Uniform distribution.
Return a real pseudo-random number in the range [0,1).
Documentation generated by fci on Mon Feb 7 11:41:50 2000