Line 29: You're calling srand() with an argument of 0 every time you run your program. i.e. You're using the same seed every time. Using the same seed is going to return the same sequence of numbers every time.
Call srtand() this way:
1 2
// Delete line 19
srand (time(0));
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.
You are seeding the random number generator with "time" which is an integer that is set to 0. If you seed the generator with the same number, you will always get the same sequence of results.
I think you wanted to call the time function and use that result to seed the RNG.