### Rather Simple Question

Posted:

**Wed Aug 25, 2004 7:21 am**I was looking through the source code for the robot/alien/whatever's move delay, and I found it, but I'm kind of stuck on what it means.

8 + 8 * !RND(3)

From an earlier topic Zomis said that regular RND(3) will produce an integer from 0-2... but since I don't actually KNOW C, I have no idea what !2 will end up being. !1 and 0 would end up 0 and 1 respectivly, I think, but the only guess I have for !2 would be a bitwise not bringing it to 1. A nifty short hand for a 1/3 of a zero, but two possible delays doesn't seem to fit with what I experience with the game.

8 + 8 * !RND(3)

From an earlier topic Zomis said that regular RND(3) will produce an integer from 0-2... but since I don't actually KNOW C, I have no idea what !2 will end up being. !1 and 0 would end up 0 and 1 respectivly, I think, but the only guess I have for !2 would be a bitwise not bringing it to 1. A nifty short hand for a 1/3 of a zero, but two possible delays doesn't seem to fit with what I experience with the game.