A procedure to obtain a set of quizzes with calculated embedded answers (cloze questions) in XML Moodle format. From the set of questions, one will be randomly assigned by Moodle to a student. The procedure is suited for exams and evaluations in Moodle.