I've heard of this problem too..I think someone said once that mIRC uses $ticks to get the random number..but then in one of the new versions of mIRC recently I think $rand was improved upon..
But I'm not sure. Ironically, I don't know how to do what you're wanting, I just thought I'd throw in my 2 cents.