class MegaLotto::Drawing
Simple class top generate the lotto numbers
Public Instance Methods
draw()
click to toggle source
# File lib/mega_lotto.rb, line 11 def draw 5.times.map { single_draw } end
Private Instance Methods
single_draw()
click to toggle source
# File lib/mega_lotto.rb, line 17 def single_draw rand(1..100) end