Skip to content

Instantly share code, notes, and snippets.

@arturopie
Created February 24, 2013 00:48
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 arturopie/5022098 to your computer and use it in GitHub Desktop.
Save arturopie/5022098 to your computer and use it in GitHub Desktop.
Random words generator
# 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