Distributing Points on the Sphere discusses four different approaches. For some read-made code (with a demo, see below), you can use the Fibonacci algorithm. (Click on the $</>$ sign at the top to see the code.)
Fibonacci algorithm: A fast method of producing an arbitrary number of equally distributed points around a sphere. This is accomplished by drawing a fibonacci spiral (similar to sunflower seed pattern) that maintains constant surface area.