Random value for latitude & longitude in ruby
latitude = rand(-90.000000000...90.000000000)
longitude = rand(-180.000000000...180.000000000)
Written by Hisyam
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#