Extensions to the Range class
This method returns a random number between the lower and upper bound
[Source]
# File lib/rbot/core/utils/extends.rb, line 179 179: def pick_one 180: len = self.last - self.first 181: len += 1 unless self.exclude_end? 182: self.first + Kernel::rand(len) 183: end
Alias for pick_one
[Validate]