Class: MegaLottery::Drawing

Inherits:
Object
  • Object
show all
Defined in:
lib/mega_lottery/drawing.rb

Instance Method Summary collapse

Instance Method Details

#drawObject



3
4
5
# File 'lib/mega_lottery/drawing.rb', line 3

def draw
  MegaLottery.configuration.drawing_count.times.map { single_draw }
end

#single_drawObject



7
8
9
# File 'lib/mega_lottery/drawing.rb', line 7

def single_draw
  rand(0...60)
end