fix random example selection and multline matching