Go to the documentation of this file.
18 #if defined(_MSC_VER) || defined(__MNO_CYGWIN) || defined(__MINGW32__)
20 #define SRANDOM(seed) srand(seed)
21 #define RANDOM() rand()
23 #define SRANDOM(seed) srandom(seed)
24 #define RANDOM() random()
28 #define BINS(weight, capacity) \
29 ((int) ceil(((double)weight)/((double)capacity)))
32 #define RHS(cust_num, weight, capacity) \
33 (cust_num-BINS(weight, capacity))