You can set your quiz in Moodle to shuffle the questions by choosing Shuffle randomly within Layout >> Question order in your Quiz settings.
You can further shuffle within questions by choosing Yes within Question behavior >> Shuffle within questions in your Quiz settings.
NOTE watch for questions that have a ‘select all of the above’ format. For these type of questions you will want to go into your question bank and edit the question to turn off shuffling within questions – just for these particular ones. You want to do this to avoid displaying a question like this:
Choose the best answer:
- This one
- All of the above
- That one
- The other one