Class: RubyOnAcid::RandomFactory
- Defined in:
- lib/rubyonacid/factories/random.rb
Overview
Returns random numbers between the minimum and the maximum.
Instance Method Summary collapse
-
#get_unit(key) ⇒ Object
Returns a random value between 0 and 1.
Methods inherited from Factory
#boolean, #choose, #get, #initialize, #within
Constructor Details
This class inherits a constructor from RubyOnAcid::Factory
Instance Method Details
#get_unit(key) ⇒ Object
Returns a random value between 0 and 1.
9 10 11 |
# File 'lib/rubyonacid/factories/random.rb', line 9 def get_unit(key) rand end |