Hey,
You can use int rand(unsigned_int *seed) to create a psuedo random number that won't spit out the same numbers all the time. A good way to use it might be
int x = 0;
x = rand(&x);
make sure to include stdlib.h
if you really need more random than that there is void srand(unsigned_int seed) that will reseed your random number generator then use int rand(void) to pop out a new number. example
int currentTime = (the current time, sorry i forget);
int randomNumber = -1;
srand(currentTime);
randomNumber = rand();
hope it helps.