I need a random number chosen for every iteration of the while loopCode:srand ( time(NULL) ); i = rand () % 18;
But the problem is, this rand and srand does it per second, so unless i putCode:while (d != 6) { srand ( time(NULL) ); i = rand () % 18; d++; }, the number is always the same for 1 whole second, how can i get it to choose a random number every millisecond?Code:d! = 10000