Class: PlanOut::RandomFloat

Inherits:
OpRandom show all
Defined in:
lib/plan_out/op_random.rb

Constant Summary

Constants inherited from OpRandom

OpRandom::LONG_SCALE

Instance Attribute Summary

Attributes inherited from Operator

#args

Instance Method Summary collapse

Methods inherited from OpRandom

#get_hash, #get_uniform, #get_unit

Methods inherited from OpSimple

#execute

Methods inherited from Operator

#execute, #initialize

Constructor Details

This class inherits a constructor from PlanOut::Operator

Instance Method Details

#simple_executeObject



30
31
32
33
34
# File 'lib/plan_out/op_random.rb', line 30

def simple_execute
  min_val = @parameters.fetch(:min, 0)
  max_val = @parameters.fetch(:max, 1)
  get_uniform(min_val, max_val)
end