NetLogo Models Library:
Note: If you download the NetLogo application, every model in the Models Library is included.
This code example demonstrates the correct way to uniformly distribute turtles on the surface of a sphere. Note that simply setting the heading and pitch to random numbers between 0 and 360 results in a non-uniform distribution with clustering at the poles in the z direction. The solution in
setup-uniform is based on information found here: