Created
September 30, 2018 18:56
-
-
Save garenyondem/866a21ce08b59978f2ad91a44bfce415 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function randomLatLon() { | |
let lat = (Math.random() * 180 - 90).toFixed(8) | |
let lon = (Math.random() * 360 - 180).toFixed(8) | |
return { | |
lat, | |
lon | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment