Hi dudes! And thanks for reading this.
So I want rand() to generate random number and again, but the second number can´t be same as the first one.
So far my code is:
int kortti1, kortti2;
srand ( time(NULL) );
kortti1 = rand() % 5 + 1;
kortti2 = rand() % 5 + 1;
I´m pretty sure I should use this string:
kortti1 != kortti2;
But I have no idea where to place it :angry:
So a small advice would be great!
Thanks a lot!