C program – srand() [duplicate]

Why are you calling srand in a loop? Just call it once at the start of your program and then call rand any number of times.

Leave a Comment