SOLVED: More randomness
-
I've set up a simple condition to generate a random number based on a seed value. The code is below. The problem is that no matter what I assign as the seed value, I keep getting the same sequence again and again.
What am I doing wrong?
@
qsrand(QTime::currentTime().msec());
returnValue = ((rand() % (m_iUpperBound - m_iLowerBound + 1)) + m_iLowerBound);
@ -
Never mind. I figured it out. Stupid error.
-
Yep! That's what I did.