Monte-Carlo simulation of particles on a sphere

This was written for a project I was working on.