First let me say thanks for this forum. I'm taking my first C++ class (an online class, mind you) and being able to find topics on here has been big help.
I'm in the middle of a project and I cannot figure out what is wrong with my random number generator. Everything else is working but this is giving me fits. It either returns 0 or returns something like "00A5246." Is there something wrong with the generator? Am I not returning it to main correctly? I'm lost at this point. Also, while building the various functions I was inputting a value for int W. It's not there right now so you will need to add it if you want to test the functions without the generator.
Lastly, I tried testing the generator by itself and was getting results outside my max. How is that possible?
Thanks! That helped. Unfortunately, I don't have a choice of what commands to use right now, although I will make note of it for my own use. This professor is very much "if it isn't exactly what I told you, it's wrong" and that's what I was told to use.