Sample uniformly from the surface of a d-spherical cap I would like to uniformly sample points from the d-spherical cap. The problem is as follow: