#!/bin/bash i=1 a=$RANDOM max=$a min=$a while [ $i -le 10 ] do [ $max -lt $a ] && max=$a [ $min -gt $a ] && min=$a a=$RANDOM echo "$a" let i done echo "max is $max" echo "min is $min"
更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!