Coding a guessing game with difficulties. The secret number can range anyone from 1 to 1000000, but when generating the number for anything over about 10000, I always get roughly the same number. Why is it the larger ranges all produce roughly the same number? ( Around 15,000 ).
yes I belive there is a problem with Rand and big numbers. If you have a compiler that can handle c++11 then you should use one of the new random number generators.
If you don't have c++11 then just use rand to generate three or four smaller numbers and multiply them together.