method
rangerand
rangerand(range)
public
Hide source
# File lib/resolv.rb, line 615 def self.rangerand(range) # :nodoc: base = range.begin len = range.end - range.begin if !range.exclude_end? len += 1 end base + random(len) end