How to generate random numbers with rand() and srand() without time.h in C ?
You could try givin another seed to the random generator like the program's pid.
srand(getpid()); int num = rand();