After playing around with the quiz module on Moodle I think I’ve decided to try the Calculated question type. In this type of question you can enter variables into the question and then the formula for determining the correct answer. For example this is the quiz question for mission 1:

*Radar imaging shows that the cargo jet is heading east at {x} km/h. The agency jet has a top speed of {y} km/h. There is a wind from the north east at {z} km/h. What direction should you head to intercept the hijacked plane?*

Moodle then asks me for a range for each variable (ie {y} is between 400 and 600 while {z} is between 25 and 45. Moodle will then enter a random number into the question. This way the student can retry the quiz without memorizing the answer.

For the solution I entered the following into Moodle:

*rad2deg(asin(sin(2.356)*({z}/{y})))*

One issue is that Moodle works in radians rather than degrees so I had to enter the angle in radians and then have Moodle convert its solution to degrees using the rad2deg command.

I think ideally I want to create a set of questions for each mission so that the question itself can change rather than just the numbers, but for now this appears to be a quick method of creating a random quiz.