Why am i getting random numbers in between 100,000 and 120,000? I have all the required #includes and seeded the time to NULL.
I want to get the numbers random from 100,000 to 999,999.
1 2 3 4 5
|
for (int i = 0; i < 25; i++)
{
int pass = rand() % 999999 + 100000;
cout << pass << endl;
}
|
Last edited on
Last edited on