Sampling power-law distributions