设置一个双色球脚本

#!/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

posted @ 2019-05-19 12:32  #赵程#  阅读(286)  评论(0编辑  收藏  举报