When probability is bigger than 1, select more than 1 instances

The change is for supporting terminating more than 1 instance in a group in one run.