+ 3
Why it keeps putting out 41 for one?
I expect it to put out different number each time I run the program.
2 Answers
+ 4
Share the code so we can check what's happening
+ 1
rand() is pseudo-random.
You need to seed the generator. (srand)
I expect it to put out different number each time I run the program.