aristotelisch
12/14/2013 - 10:59 AM

My version of mega_lotto.rb to be used on the "Build a Ruby Gem" course by [Brandon Hilkert](http://brandonhilkert.com/courses/build-a-ruby-

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