Skip to content

Instantly share code, notes, and snippets.

@hooopo
Created June 4, 2012 16:20
Show Gist options
  • Save hooopo/2869345 to your computer and use it in GitHub Desktop.
Save hooopo/2869345 to your computer and use it in GitHub Desktop.
File.open("num.txt", "w+") do |file|
50_000_000.times do
num = (1..11).map{ rand(10).to_s}.join
file.puts num
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment