class MegaLotto::Drawing

Public Instance Methods

draw() click to toggle source
# File lib/mega_lotto/drawing.rb, line 3
def draw
  6.times.inject([]) do |arr, n|
    arr << single_draw
  end
end
single_draw() click to toggle source
# File lib/mega_lotto/drawing.rb, line 9
def single_draw
  rand(0...60)
end