Added randomPointInSphere function