One hundred and fifty-one women who had an indication for a Pipelle endometrial biopsy were randomized into three groups as follows : group 1 , vaginal misoprostol ; group 2 , rectal NSAID , and group 3 , control .