Inversetransform sampling method