You might be calling srand(), but I don't see any code calling rand() as yet.
Post your latest code.
> It seems you have to change the srand value from srand ( time(NULL) );
> to srand (1); after rolling the die.
Calling srand(time(NULL)); just ONCE at the start of the program is usually sufficient to change things around from one run to another.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
But you've just claimed you've been calling rand(), yet I see no evidence of it.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953