Created
June 29, 2017 22:43
-
-
Save woodruffw/806e0ae35f8a69ba7033a054c87e9b5a 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
size, times, _ = gets.chomp.split(/d/i).map(&:to_i) | |
puts "You totaled %d" % [*1..size].sample(times).reduce(:+) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment