Created
November 23, 2015 22:31
-
-
Save nullset2/68431d753fb8073415d6 to your computer and use it in GitHub Desktop.
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
#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