In this randomized placebo controlled , clinical trial , 232 male patients aged 18 to 50 years old admitted to Razi University Hospital for varicocelectomy , inguinal herniorrhaphy , and scrotal surgery were randomly assigned to receive either three doses of 0.4 mg tamsulosin ( n = 118 ) or placebo ( n = 114 ) , 14 and 2 hours before , and 10 hours after surgery .