Forgive me if it's obvious, but I'm having some trouble with the idea of generating a truly random integer in range, I've just started using C++. My current code:
int start = rand() % 30 + 20;
always results in 31, as this is a "psuedo-random" integer. It is also above 30! Can true random numbers be achieved in this way, and also, how can I actually generate a number in range?
-Jai