rand()? In this day and age? arc4random_uniform() at the very least.
Not a member of The Register? Create a new account here.
Remember me on this computer? Post anonymously?