I have a program which generates random cards from deck but when I run it, it says the same every time!
How can this be?
I have a program which generates random cards from deck but when I run it, it says the same every time!
How can this be?
Perhaps you did not seed the random number generator
Look up srand(..)