class Array

Public Instance Methods

choice() click to toggle source
# File lib/plugins/yhara.rb, line 4
def choice
  at(rand(size))
end
Also aliased as: sample
sample() click to toggle source
# File lib/plugins/jakigan.rb, line 10
def sample
  at(rand(size))
end
take(n) click to toggle source
# File lib/termtter/system_extensions/core_compatibles.rb, line 4
def take(n) self[0...n] end