Created
September 5, 2012 02:35
-
-
Save brandonmwest/3629435 to your computer and use it in GitHub Desktop.
Generate a csv of fake names and email addresses
This file contains hidden or 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
require 'faker' | |
require 'csv' | |
CSV.open("output.csv", "wb") do |csv| | |
i=0 | |
until i == 25000 | |
fake = [Faker::Name.name, Faker::Internet.email] | |
csv << fake | |
i=i+1 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment