class LotteryPicker::Drawing

Constants

NUMBERS

Public Instance Methods

draw() click to toggle source
# File lib/lottery_picker/drawing.rb, line 5
def draw
  NUMBERS.times.map { single_draw }
end

Private Instance Methods

single_draw() click to toggle source
# File lib/lottery_picker/drawing.rb, line 11
def single_draw
  rand(0...49)
end