So. What I am attempting to do is to get the program to spit out a random number somewhere between 1 and 10,000. It's not working quite the way I want, specifically, the numbers end up being low, for some reason.
Basically, I just ran a loop 10,000 times, where the program kept spitting out random numbers (1-10000) and every time made a note of whether or not the random number was above or below the middle number (5000 in this case.) The program consistently spits out numbers from 1-10000 that are only 5001 or above maybe 4500 times out of 10000. Which is just plain out bizarre. I ran the same program for numbers 1-6 and it came right down the middle, around 5000 of the 10000 numbers were 4+.
What am I doing wrong? (It is possible that this is actually a malfunction of the testing function, and not the generator itself, but that in and of itself would be interesting to know.)
Thanks for your patience, trying to learn C++ quickly to test some things out that can't be done in a spreadsheet.