Created
September 8, 2011 15:51
-
-
Save dannyamey/1203739 to your computer and use it in GitHub Desktop.
The magic 8 ball knows all
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
#!/usr/bin/env bash | |
lines=( | |
'As I see it, yes.' | |
'Concentrate and ask again.' | |
'You may rely on it.' | |
'Signs point to yes.' | |
'My sources say no.' | |
'Ask again later.' | |
'It is decidedly so.' | |
'Without a doubt.' | |
"Don't count on it." | |
) | |
n=${#lines[@]} | |
r=$((RANDOM % n)) | |
echo "${lines[r]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment