int randomNumber = (double)rand() / (RAND_MAX + 1) * (10 - 0) + 0;
is the code I'm using, it is getting a random number, but is getting the SAME random combination every time?
Can anyone see what I'm doing wrong?
int randomNumber = (double)rand() / (RAND_MAX + 1) * (10 - 0) + 0;
is the code I'm using, it is getting a random number, but is getting the SAME random combination every time?
Can anyone see what I'm doing wrong?