I was using this module for Perl, Crypt::PRNG, to generate random numbers. The number-generation seems truly random when using the random string command, it can use digits 0-9 as well as other characters and create a random string of the specified number of digits, the problem is the leading 0's.
perl -MCrypt::PRNG=:all -E "say random_string_from("1234567890", n)"
random_string_from("123456789", 1) . random_string_from("1234567890", $n-1)