direct CDF inversion to simulate times to event