lib/populator/random.rb
# If an array or range is passed, a random value will be selected to match.
# All other values are simply returned.
If an array or range is passed, a random value will be selected to match.
All other values are simply returned.
If an array or range is passed a random value will be selected to match . All other values are simply returned .
def interpret_value(value)
      case value
      when Array then value[rand(value.size)]
      when Range then value_in_range(value)
      else value
      end
    end
def interpret_value ( value ) case value when Array then value [ rand ( value . size ) ] when Range then value_in_range ( value ) else value end end
If an array or range is passed, a random value will be selected to match.
If an array or range is passed a random value will be selected to match .
value