Added method for generating random spheres