/*
 * Random number support
 * Peter Stuart
 * $Id: rn.h,v 1.1 2003/05/12 22:56:26 ophi Exp $
 *
 * ---- macro to help seed random numbers ------
 * it serves two purposes:
 *  - allows easy searching to ensure non-repeating numbers
 *  - automatically uses seed
 *  - RN_OFFS is used to push noise off the lattice points. This can later
 *    be subtracted to line noise up along boundaries.
 */

#ifndef RN_OFFS
#define RN_OFFS 0.5
#endif /* RN_OFFS */

#ifndef RN
#define RN(x) (seed+(x)+RN_OFFS)
#endif /* RN */

