Files | |
file | random.h |
random number generator of L'Ecuyer with Bays-Durham shuffle and added safeguards (numeric recipes) | |
Functions | |
double | ran2 (long *idum) |
Long period (> 2.0e18) random number generator of L'Ecuyer with Bays-Durham shuffle and added safeguards. Returns a uniform random deviate between 0.0 and 1.0 (exclusive of the endpoints). | |
unsigned short | random (long *seed, unsigned short max) |
returns a random value between zero and max, Long period (> 2.0e18) (see ran2()) |
double ran2 | ( | long * | idum | ) |
unsigned short random | ( | long * | seed, | |
unsigned short | max | |||
) | [inline] |
Definition at line 175 of file random.h.
References ran2().
Referenced by nCenterFocus::CenterFocusExperiment< variant >::liftTest_performSingleTest(), TVector< TRing >::randomInit(), TMatrix< TRing >::randomInit(), BlockMatrix< TRing >::randomInit(), and testRandom().