设置一个双色球脚本
作者:互联网
#!/bin/bash
###红球###
RED='\033[31m'
BLUE='\033[34m'
END='\033[0m'
sleep 2
echo -ne "$RED 红球: $END"
for i in $(seq 6)
do
echo -n " $[$RANDOM%33+1]"
done
echo
###蓝球####
echo -ne "$BLUE 蓝球: $END"
for i in $(seq 1)
do
echo -n " $[$RANDOM%16+1]"
done
sleep 2
echo
标签:脚本,双色球,END,蓝球,echo,设置,033,###,RANDOM% 来源: https://www.cnblogs.com/zc1741845455/p/10888814.html