in reply to Re^4: making random number
in thread making random number

print "0912$random_number\n";

This works (look at the small difference to your solution). However if the random-number is less than 10, it will give you a 5-digit-number instead of a 6-digit-number. That issue may be circumvented by the approach shown by CountZero below (adding 91200 to your random number).