Created
February 24, 2013 00:48
-
-
Save arturopie/5022098 to your computer and use it in GitHub Desktop.
Random words generator
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
# First, install gem faker: | |
# $ gem install faker | |
# Usage: | |
# $ ruby file_generator.rb > file.in | |
require 'faker' | |
NUM_OF_WORDS = 1000 | |
NUM_OF_WORDS.times do | |
print Faker::Lorem.word + " " | |
print "\n" if rand(6) == 0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment