Originally Posted by
Eldarion
I do something completely different-
I include <cstdlib>, which has a rand() function, and include<ctime>.
I then use the clock() function to execute rand() many times based on how many clock ticks have passed since the program started, which puts me into an entirely random place in the rand()'s random number list.
I had no idea about srand() and all that.
Anyway; cstdlib's rand() doesn't go up in value every time, and a way of making a reliable min and max is by dividing the random number by RAND_MAX, multiplying by (MAX-MIN) and adding MIN.