In file No file:

double urand_r (randBlock *rb, double lo, double hi)

Reetrant uniform random number generator

Documentation

Reetrant uniform random number generator.

This is a reentrant version of Numerical Recipes rand1() which uses a lookup table to remove low order sequential correlations by shuffling the output. A zeroed randBlock (or just a seed value <= 0) will result in an initialization of the generator.

Returns:
A uniformly distributed random number in (lo, hi).
Parameters:
rb - pointer to random block
lo - low value of uniform distribution
hi - high value of uniform distribution
Author:
MRP, Apr. 1998
See Also:
"Numerical Recipes in C" p. 280 ran1(). and _randBlock

alphabetic index hierarchy of classes


Please send questions and comments to zweizig_j@ligo.caltech.edu


generated by doc++