Sample from distribution taking spherical statespace

35 Views Asked by At

I have a probability distribution over a 2-sphere, with density function $f(\phi)$, a function of polar angle only. Is there an efficient way to sample from this distribution?