此文件包含了在linux下实现tpr-tree索引的源代码
源代码在线查看: random.h
//-------------------------------------------------------------------- // random.h // -------- // Random number generation // // Moving point workload generator v 1.1 // Copyright(c) 1999-2001, Aalborg University // #ifndef __RANDOM_H #define __RANDOM_H #include #include inline double rnd () { return rand() / ((double)RAND_MAX + 1); } inline double randomf(double __num) { return rnd() * __num; } inline bool randombool () { return rnd() < 0.5; } inline void randomize(void) { srand((unsigned) time(NULL)); } inline int random(int __num) { return (int)(rnd()*__num); } // normally distributed random number double randnorm (double mean, double deviation); #endif