Skip to content

Instantly share code, notes, and snippets.

@tarolandia
Last active December 24, 2015 00:19
Show Gist options
  • Save tarolandia/6716153 to your computer and use it in GitHub Desktop.
Save tarolandia/6716153 to your computer and use it in GitHub Desktop.
module Faker
class Internet
def self.webpage
"https://#{Faker::Internet.user_name}.#{domain_name}"
end
end
class Geo
def self.lat
Random.rand(-90.00000000..90.00000000)
end
def self.lng
Random.rand(-180.00000000..180.00000000)
end
end
end
puts Faker::Geo.lat #=> -67.41023016040629
puts Faker::Geo.lng #=> 134.22029106242678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment