Skip to content

Instantly share code, notes, and snippets.

@redconfetti
Created March 5, 2016 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redconfetti/766035736ffa252819a8 to your computer and use it in GitHub Desktop.
Save redconfetti/766035736ffa252819a8 to your computer and use it in GitHub Desktop.
Powerball Numbers
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}"[
@redconfetti
Copy link
Author

Demo available for this at repl.it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment