Skip to content

Instantly share code, notes, and snippets.

@lucascaton
Created April 30, 2011 01:55
Show Gist options
  • Save lucascaton/949336 to your computer and use it in GitHub Desktop.
Save lucascaton/949336 to your computer and use it in GitHub Desktop.
array = []
start_time = Time.now
10000000.times do
array << rand(999999)
end
end_time = Time.now
puts "10 milhões de números randomicos em #{end_time - start_time} segundos..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment