Created
January 16, 2015 16:05
-
-
Save kitsuyui/5a996396995cd45d05dc to your computer and use it in GitHub Desktop.
OS X の say コマンドで延々と 2 桁かける 1 桁の掛け算をしゃべり続けるスクリプト ref: http://qiita.com/kitsuyui/items/d867007d01fa69617861
This file contains hidden or 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
#!/usr/bin/env bash | |
while true ; | |
do | |
a=$(( $RANDOM % 9 + 1 ))$(( $RANDOM %9 + 1 )) | |
b=$(( $RANDOM % 8 + 2 )) | |
c=$(( a * b )) | |
say -v Kyoko "$a 、かける、 $b 。わ" | |
sleep 2 | |
say -v Kyoko "$c" | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment