I knew you were going to ask that.
The rand function is dependent on a random "seed" which to make it simple, dictates how the numbers are generated.
add the following to your code.
just add those two lines and your numbers will be much m roe random. This will seed the random number generator with the current time and make your numbers appear much more random.Code://Includes #include <time.h> ........ int main() { srand( time(NULL) ); .... return 0; }