class Faker::Number

def positive(from: 1.00, to: 5000.00)

Returns:
  • (Float) -

Parameters:
  • to (Integer) -- The higher boundary.
  • from (Integer) -- The lower boundary.
def positive(from: 1.00, to: 5000.00)
  random_number = between(from: from, to: to)
  greater_than_zero(random_number)
end