Skip to content

Instantly share code, notes, and snippets.

@nullset2
Created November 23, 2015 22:31
Show Gist options
  • Save nullset2/68431d753fb8073415d6 to your computer and use it in GitHub Desktop.
Save nullset2/68431d753fb8073415d6 to your computer and use it in GitHub Desktop.
#give me a CSV file with 1,800,000 random dates from february 01 2013 to february 28 2013 in a single column
require 'date'
File.open("juliodata.csv", "w") do |f|
1800000.times do
f << "#{Date.new(2013, 02, rand(1..28))}\n"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment