I’d like to have a function that accepts a geo location (Latitude, Longitude) and generates random sets of coordinates around it but also takes these parameters as a part of the calculation:
- Number Of Random Coordinates To Make
- Radius to generate in
- Min distance between the random coordinates in meters
- The root coordinates to generate the locations around it.
Example of how the generation would be:

What’s a good approach to achieve this?
A brute force method should be good enough.
In PHP, generating a new point is easy
Then calculating the distance between two points
** Edit **
For the sake of clarifying what others have said, and after doing some further research (I’m not a mathematician, but the comments did make me wonder), here the most simple definition of a gaussian distribution :
Therefore, to have a normal distribution, you’d have to change the line of the generated radius to
as others have suggested.