Making srand ignore certain values?
Be careful not to confuse rand() and srand(). srand() seeds the RNG, you typically call this once, and rand() gets the next value in the sequence, which you call when you need a random number.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement