Extensions to the Range class
This method returns a random number between the lower and upper bound
# File lib/rbot/core/utils/extends.rb, line 179 def pick_one len = self.last - self.first len += 1 unless self.exclude_end? self.first + Kernel::rand(len) end
Generated with the Darkfish Rdoc Generator 2.