You can use variables in math equations to generate similar, but not identical questions in your quizzes. Each time the quiz is run, a new value will be used for the variable, according to the parameters you've set.
Create your variable in the quiz question editor.
You can then drag variables into your equations. Alternatively, you can also enter them manually by enclosing your variable in dollar signs, like this: