1、脚本实例:#!/bin/shi=0for i in {a..z};do b[$j]=$i let j++done((n=RANDOM%26|bc))echo ${b[$n]}2、或者tr -dc a-z < /dev/urandom | head -c1