Created
March 5, 2016 05:25
-
-
Save redconfetti/766035736ffa252819a8 to your computer and use it in GitHub Desktop.
Powerball Numbers
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
picks = [] | |
balls = (1..69).to_a | |
5.times do | |
picks << balls.sample | |
end | |
powerball = (1..26).to_a.sample | |
puts "picks: #{picks.join(', ')} - powerball: #{powerball}"[ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Demo available for this at repl.it