Skip to content

Instantly share code, notes, and snippets.

@soplakanets
Created August 5, 2011 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soplakanets/1127083 to your computer and use it in GitHub Desktop.
Save soplakanets/1127083 to your computer and use it in GitHub Desktop.
Bash utility that aids creative thinking (:
#!/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