Its been a while since this topic has come up, but I seem to remember you needing to use rnd twice. The first time is a result you throw away, and the second is actually the random number. Also remember using @ticks. Aside from that I can't explain the logic. \:\)

edit: and I could be completely off here too. It really has been a while since this came up.