gen_surv_times function

Generate survival times