Happy New Year! Yes, the current one, not a previous one; this is a new post, we swear!
0 Members and 2 Guests are viewing this topic.
So then shouldn't it be:x = (rang()%20) + 5?
Quote from: AntiVirus on October 14, 2006, 10:20:10 pmSo then shouldn't it be:x = (rang()%20) + 5?rang()? Sorry, I think I missed a -1 in my formula. Sorry rand() % 20 returns a random number between 0 and 19, inclusive+5 makes it 5 to 24. The range is actually off by one.