#!/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
原文地址:https://www.cnblogs.com/zc1741845455/p/10888814.html
时间: 2024-10-11 10:52:47