Created
August 5, 2011 07:50
-
-
Save soplakanets/1127083 to your computer and use it in GitHub Desktop.
Bash utility that aids creative thinking (:
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 | |
# utility that aids creative thinking by generating a random word. | |
# See 'Random Input' technique (http://members.optusnet.com.au/charles57/Creative/Techniques/random.htm) | |
FILE='/usr/share/dict/words' | |
head -$((${RANDOM} % `wc -l < ${FILE}` + 1)) ${FILE} | tail -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment