设置一个双色球脚本
#!/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
用代码改变命运,加油,努力,陌生人!