Created
April 30, 2011 01:55
-
-
Save lucascaton/949336 to your computer and use it in GitHub Desktop.
This file contains 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
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