Thats good randomising is fairly easy to put in. In case you're interested, this is what I know about generating random numbers:
use this to seed the random number generator at the beginning of the program
#include <time.h>
srand(time(NULL));
Or if you are making a Windows app, you can use
srand((int)GetTickCount());
use this to get just any random number
rand();
To get a random number from "start" to "end", do this:
int start = 5;
int end = 10;
int randomNumber = (rand() % (end - start + 1)) + start;
To make it easier, make a macro:
Code:
#define RANDOM(start,end) ((rand() % ((end) - (start) + 1)) + (start))
Hope it helps