class PlanOut::UniformChoice
Public Instance Methods
simple_execute()
click to toggle source
# File lib/plan_out/op_random.rb, line 78 def simple_execute choices = @parameters[:choices] return [] if choices.length() == 0 rand_index = get_hash() % choices.length() choices[rand_index] end