sys.rand_string() is used to create a cryptographically strong random string
from the characters in <charset>.
It can be use to create random numbers by limiting <charset> to the digits
you want to allow in the number and then converting the return to a number.
For example,
to create a random 5 digit number use:
n = atoi(sys.rand_string("0123456789",5));