Related: Activity - Quizzes & Exams, FAQs, How To - Faculty

How do I add random questions to a quiz? [Moodle version 3.2]


If you have questions in your course’s question bank, you can have Moodle randomly select questions to add to your quiz. This is best if you have your questions sorted by categories to allow Moodle to only select from the pool you set up. To learn how to add categories in your question bank, explore this FAQ, “How do I add categories to my question bank?”

Once you have created a quiz and determined all of the settings, you will need to add questions to the quiz. To add random questions to the course, follow the steps below.

Note: you can click on any image to view a larger version of the image.

  1. From the main page of your course, locate and click on the quiz to which you to add the random questions.
  2. When you are in the quiz, look in the upper right corner of the main section for the gray ‘edit’ gear wheel. Click on the gray wheel and from the drop-down menu that appears, click on the ‘Edit quiz’ option.

    (If you have not added any questions yet to your quiz, you will also see an ‘Edit quiz’ option in the center of the page.)
  3. On the ‘Edit quiz’ page, look in the bottom right section for the ‘Add’ drop-down menu.
  4. Click on the drop-down menu. Select the ‘+ a random question’ option.
  5. In the ‘Add a random question’ pop-up, select the category for the questions.

  6. Indicate how many random questions you would like to add to the quiz.
    NOTE: The system will allow you to add more random questions than currently exist in the category. In the example below the category has 4 questions, but the system allows you to add 5 (or more). This simply means that the student will get the same question more than once.

    If you had 4 random questions and there are only 4 questions in the category, then every student will see all the same questions.
  7. When you have set the options, click the ‘Add random question’ button.
  8. Back on the ‘Edit quiz’ page, you will now see indications of the random question(s) that you have added. The die in front of the question indicates that it is a random question type.
  9. You can see which questions are in the selected category by clicking on the “See questions” link to the right of the “Random” question’s category. This will bring you to the Question Bank, and into that specific category. You can then view an individual question by clicking on the magnifying glass by the questions.
  10. If you want to make sure that a certain question is on every exam, you can add it as you would normally add a question. When the system pulls random questions from that category, it will not pull that question.
    1. You can preview the quiz to see how it plays out. From the ‘Edit quiz’ page, click on the name of the quiz in the breadcrumbs at the top of the page.
    2. Then from the main page of the quiz, click on the gray ‘edit’ gear wheel in the upper right corner.
    3. From the drop-down menu that appears, click on the “Preview quiz” option.
    4. Then on the “Preview quiz” page, click the “Start attempt” button.
    5. You can click through the questions to see how they are randomly selected.
    6. To get a new set of random questions, click on the “Start a new preview” button in the right column, underneath the numbers for the questions. This will reload the quiz with a different set of random questions to click through.

This entry was posted in Activity - Quizzes & Exams, FAQs, How To - Faculty. Bookmark the permalink.

Comments are closed.

For more information, contact Moodle Support,