How to Create a Weighted Lottery Program in Ruby
This Ruby coding exercise walks through how to build out a weighted lottery and utilizes methods such as each_with_object, nested iterators, and randomization.
Show notes: https://rails.devcamp.com/daily-ruby-code-practice-exercises/enumeration-iteration-d0c23b46-dbd5-49d4-8d2f-fb802ea4c876/building-weighted-lottery-method-ruby