#include #include #include int randGen(int min, int max) { srandom((unsigned) time(NULL)); return random() % (max - min + 1) + min; }