#!/bin/bash
#b=1
#while [[ b=1 ]]
#do
#sleep 1

student=(1 DPL YPD LT ZZM HY CQW LSJ ybr) a=$[RANDOM%4+3] c=$[RANDOM%2+1] echo ----------------------------------- echo $a号 ${student[$a]} echo $(($a+$c))号 ${student[$(($a+$c))]} echo $(($a-$c))号 ${student[$(($a-$c))]} echo -----------------------------------
#done
~ ~ ~ ~