#ifndef __util_h__ #define __util_h__ /* Returns a random number between min and max, inclusive */ #define rand_num(min, max) ((min) + ((float)((max) - (min)) * \ rand() / (float)(RAND_MAX))) #endif