I have a typical situation where I need to generate a batch of random numbers. I have used a loop which generates 100 random numbers on each pass:
for(int i=0; i
Keep srand out:
srand
srand(time(NULL)); //Initialize seed for(int i=0; i