Are you referring to the program giving you 10 random numbers at first, but then giving you those same numbers each time you run the program?
Are you referring to the program giving you 10 random numbers at first, but then giving you those same numbers each time you run the program?
>then giving you those same numbers each time you run the program?
If this is the case then srand isn't doing it's job on the OP's implementation. Which is entirely possible since using time directly to seed srand is non-portable. However, clarification would be a good idea before we start throwing out ideas.
My best code is written with the delete key.