生成100个随机6位数字

for c in `seq 100`
do
    for i in `seq 6`
    do
        realnum=$((RANDOM%10))
        echo -n $realnum
    done
    echo
done
769898
608993
694518
987945
308745
313897
...

Last updated