class MegaLotto::Drawing
Constants
- NUMBERS
Public Instance Methods
draw_inject()
click to toggle source
# File lib/mega_lotto/drawing.rb, line 9 def draw_inject NUMBERS.times.inject([]) do |arr, _i| arr << single_draw end end
draw_map()
click to toggle source
# File lib/mega_lotto/drawing.rb, line 15 def draw_map (1..NUMBERS).map { single_draw } end
draw_new()
click to toggle source
# File lib/mega_lotto/drawing.rb, line 19 def draw_new Array.new(NUMBERS) { single_draw } end
Private Instance Methods
single_draw()
click to toggle source
# File lib/mega_lotto/drawing.rb, line 25 def single_draw rand(0...60) end