# File lib/faker.rb, line 181 def rand_in_range(from, to) from, to = to, from if to < from rand(from..to) end