# Moodle - Calculated Questions

• 26th November 2010, 08:26 PM
Jeff2869
Moodle - Calculated Questions
Hi - just found this forum and I think its going to be a great help to me: Thanks in advance!

I'm a maths teacher and at the start of the term I set up our school's VLE using Moodle and the more I play with it, the more I like it!

Anyway, here's my question:

I've found out how to use (say) {a} to generate a random number in a calculated question, but can I combine several random numbers to create another number in the question?

For example, lets say a want to make a division question where the answer will always be an integer. To do this, I would take two numbers, say a and b, multiply them together and the question becomes axb divided by a, giving the answer b.

This is how I tried to set up a Moodle Calculated question:

{a}*{b} divided by {a} [lets say a=3 b = 4]

but it displays as;

3*4 divided by 3

not:
12 divided by 3 (which is what I want it to say)

Jeff
• 26th November 2010, 08:46 PM
secretlife
Hi there! I'm not a maths type person but have you looked at the Moodle.org documentation here? Calculated question type - MoodleDocs
• 26th November 2010, 09:12 PM
Jeff2869
Thanks for that - I've had a look at MoodleDocs but it doesn't help. I fear that it might not be possible to do what I want to do, which would be a real shame.
• 26th November 2010, 10:36 PM
secretlife
Ok well if you have looked in the docs and they don't help then have you tried asking the Moodle maths experts in the forums? Try this forum first Quiz module
• 26th November 2010, 11:06 PM
Jeff2869
Thanks - I'll head over there tomorrow (time for bed now I think!) and see if they can help.

Thanks again!

Jeff