Module: Genny::Integer

Defined in:
lib/genny/integer.rb

Class Method Summary collapse

Class Method Details

.genny(opts = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/genny/integer.rb', line 5

def self.genny(opts = {})
  opts = Genny.symbolize(opts)
  min = opts[:minimum] || 10
  max = opts[:maximum] || 1000
  Random.rand(max - min + 1) + min
end