Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generate a csv of fake names and email addresses
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
You can’t perform that action at this time.