I have a world map. I need random point geometry. So, how can I randomly generate point coordinates? Any programming language. Also, I am using SRID 4326.
Any programming language.
With some Python:
from random import uniform
x, y = uniform(-180,180), uniform(-90, 90)
or for a loop:
return uniform(-180,180), uniform(-90, 90)
points = (newpoint() for x in xrange(10))
for point in points:
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2 years ago