74 75 76 77 78 79 80 81
# File 'lib/choose.rb', line 74 def choose ( generator=nil ) case first when Integer first + (last + 1 - first).choose(generator) else super(nil, generator) end end