Created
February 12, 2013 17:18
-
-
Save spiralout/4771464 to your computer and use it in GitHub Desktop.
Generate a file containing X lines of Y random words
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
ruby -e 'a=STDIN.readlines;X.times do;b=[];Y.times do; b << a[rand(a.size)].chomp end; puts b.join(" "); end' < /usr/share/dict/words > file.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment