脚本代码:
[root@server15 ~]# cat fucai2c.sh
#!/bin/bash
# Test Script by TsengYia#126.com
echo "Shaking ..."
echo -n "Red Balls:"
for i in $(seq 6)
do
sleep 3
echo -n " $[$RANDOM%33+1]"
done
echo
echo -n "Blue Ball:"
sleep 3
echo " $[$RANDOM%16+1]"
运行结果:
[root@server15 ~]# ./fucai2c.sh
Shaking ...
Red Balls: 31 13 29 24 21 32
Blue Ball: 13
[root@server15 ~]# ./fucai2c.sh
Shaking ...
Red Balls: 28 13 26 11 26 25
Blue Ball: 10
阅读(4098) | 评论(0) | 转发(0) |