Patients were randomly assigned ( 2:1:1 ; stratified by age [ < 60 years vs 60 years ] ) using secure online computer randomisation to laparoscopic lavage , Hartmann 's procedure , or primary anastomosis in a parallel design after diagnostic laparoscopy .