@r0bot
Try taking thesrand(time(NULL));
out of the loop and putting it after int rand_a;
.
Take srand(time(NULL))
out of the loop. It only needs to be called once. Put it at the beginning of main.
Also, in case you're not aware, % 10 gives 0 - 9. If you want 1 - 10 (or any range) just add 1 (or however much for the desired range).
Hope this helps!
Last edited on
works well!
thank you guys ;)