How could I write an algorithm to generate n points distributed 'evenly' on a sphere? I already wrote an algorithm to generate points distributed uniformly on the surface (here), but by 'evenly' distributed I mean the way a bunch of electric charges might settle on the surface of a sphere, i.e. the minimum distance between any pair of points should be maximised. For n=2, it would just return any pair of polar opposite points. For n=32 it would probably look something like a soccerball tiling. For something general like n=7, I have no idea what it would look like although the problem still seems to me to be well-defined.
Is the problem equivalent whether the distance is measured on the surface or in the 3d space?