1. Go to Assessment > Quizzes.
2. Assuming that you have already created the quiz, click on the arrow after the quiz name and select Edit.
3. Scroll down to the Quiz Sections and right before the list of questions you will see this checkbox. Just tick it and click on the Save and Close button.
Your questions will now be randomized.