The women were randomly assigned to either the intervention group who received a single dose of ampicillin and metronidazole , or to the control group who received a multiple-day regimen of ampicillin/amoxicillin and metronidazole .