I need your help getting numbers from 1 to 100,000 into an array randomly with a seeded time. my output does go over the max random number i wanted to see.
You're printing the same number twice in a row without any spaces:
1 2 3
cout<<ranArray[i];
if (i < 10 - 1)
cout<<ranArray[i]<<", ";
The value of the first element is not 5500355003, it's 55003. 5500355003
I think what you meant to do was only print the comma if the number being printed is not the last one.
1 2 3
cout<<ranArray[i];
if (i < 10 - 1)
cout <<", ";
Note that your GetRandom() implementation will likely have gaps in the range it generates. RAND_MAX is often 32767, so if you stretch that onto [1;100000), you'll find that roughly 67% of the numbers in that range will never be hit.