My version of mega_lotto.rb to be used on the "Build a Ruby Gem" course by Brandon Hilkert
class MegaLotto
SIZE = 5
def initialize
@random_array = Array.new(SIZE)
end
def draw
@random_array.map { |i| rand(60) }
end
end
MegaLotto.new.draw