Sampling on ball and sphere