// Test of closest pair algorithms // David Eppstein, UC Irvine, 19 Apr 1997 // // Interface to random number generator // so when I change from rand/srand to something better, // I won't have to change all the code that cares about it. #include "Random.h" #include extern long nrand48(unsigned short xseed[3]); extern double drand48(); extern void srand48(long seed); extern unsigned short _rand48_seed[3]; unsigned long RandomLong() { return nrand48(_rand48_seed); } double RandomDouble() { return drand48(); } void SeedRandom(unsigned long seed) { srand48(seed); }