Last active
September 7, 2018 02:16
-
-
Save tac-yacht/873f6dbc474950f21bbd0bb67da4845a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 無限ループ | |
while : | |
do | |
echo "おみくじ please wait"| show_txt - | |
num=$((RANDOM%100)) | |
#echo "debug:"${num} | show_txt - | |
if [ ${num} -gt 50 ];then | |
echo "吉" | show_txt - | |
else | |
echo "凶"| show_txt - | |
fi | |
sleep 10 | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment