Hey everyone
I was working on a small tool and also refreshing my programming skills. my problem is I want to pick a random number from 60,000 to 200,000. it does that but the number it displays are not dramaticly changed. For example if it out puts 062045, i hit enter to do my while loop to reset it again and it moves up to like 062049....
i want it to go like if at one point its at lets say 62353, then i press enter to run again my while loop and it should change dramatically and maybe go to like in the 100,000 range. I am not forcing it but the number is changing very slowly. at the moment.
here is my code
void NNNNNN_algo()
{
srand((unsigned)time(0));
int min = 60000;
int max = 180000;
int number = min + rand() % max;
if(number < 100000)
cout << "NNNNNN: " << "0" << number << endl;
else
cout << "NNNNNN: " << number << endl;
}