class PlanOut::RandomInteger

Public Instance Methods

simple_execute() click to toggle source
# File lib/plan_out/op_random.rb, line 38
def simple_execute
  min_val = @parameters.fetch(:min, 0)
  max_val = @parameters.fetch(:max, 1)
  min_val + get_hash() % (max_val - min_val + 1)
end