[QUOTE=Dingbats;1413382]I've read of this sort of problem before.
Just tried it with -50 and 50 and the results are "normal": as for others, for example -20 (and less) till 200 with various randoms - all "normal".
copy everything from this project into a completely new project (different name, folder, etc) and then compile - don't ask me why: somebody else will have to answer that.
When it doesn't work >= sorry. I'm only a hobby writer and with my "corrections" it worked (works) fine.[/QUOTE]
Thank you very much for your help, even though your solution didn't work for me it got me to messing around with the other numbers some more and I managed to get it to work with:
randomNumbers[a] = rand() % ((rangeNums + 1) - rangeNums) + rangeNums;
I am pretty sure that I had tried this before with failure since it is the same as the statement above it, but I guess I hadn't. And since I was working with negatives I guess I assumed that it would have to be a - 1 instead of + 1. But thanks for your help and have a great night, marking thread as solved.