Sha256: 75bb8f31f0d516f97224537e0f20984bf9915d63c6fd7248cfb07d6967de6c24

Contents?: true

Size: 229 Bytes

Versions: 2

Compression:

Stored size: 229 Bytes

Contents

require 'rubyonacid/factory'

module RubyOnAcid

#Returns random numbers between the minimum and the maximum.
class RandomFactory < Factory

  #Returns a random value between 0 and 1.
  def get_unit(key)
    rand
  end

end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubyonacid-0.4.0 lib/rubyonacid/factories/random.rb
rubyonacid-0.3.1 lib/rubyonacid/factories/random.rb