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).
In reply to Re^5: making random number
by Ratazong
in thread making random number
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |