module RandTest::Numbers

Constants

FIXNUM_MAX
FIXNUM_MIN

Public Instance Methods

random_number(max) click to toggle source
# File lib/rand-rspec/integers.rb, line 11
def random_number(max)
  random_number_between(0, max)
end
random_number_between(min, max) click to toggle source
# File lib/rand-rspec/integers.rb, line 7
def random_number_between(min, max)
  min+rand(max-min+1)
end