class FoobarLotto::Drawing
Constants
- NUMBERS
Public Instance Methods
draw()
click to toggle source
# File lib/foobar_lotto/drawing.rb, line 5 def draw Array.new(NUMBERS){ single_draw } end
Private Instance Methods
single_draw()
click to toggle source
# File lib/foobar_lotto/drawing.rb, line 11 def single_draw rand(0...60) end