4 #define NB_RAND 0x10000
7 extern int * rand_tab ;
8 extern unsigned short rand_pos ;
10 #define RAND_INIT(i) \
13 rand_tab = (int *) malloc (NB_RAND * sizeof(int)) ;\
15 while (rand_pos != 0)\
16 rand_tab [rand_pos++] = rand () ;
19 (rand_tab[rand_pos = rand_pos + 1])
26 //#define iRAND(i) ((guint32)((float)i * RAND()/RAND_MAX))
27 #define iRAND(i) (RAND()%i)