please use mt_rand instead, or better, the built-in randomDigit() formatter