方法1 函数代码如下(korn shell):[code:1]
function in_range_fixed_length_random_number
{
#create a pseudo-random number less than or equal
#to the $UPPER_LIMIT value ,which is user defined.
#this function will also pad the output with leading
#zeros to keep the number of digits consistent.