Randomised Values in STACK Syntax Hints

Randomised Values in STACK Syntax Hints

by Joel Scott -
Number of replies: 1
Context is attempting to move vertical subtraction problems (think middle primary school maths) into an online problem for randomisation and instant feedback.

I'd like to have the digits of the minuhend as the initial values in each of the input boxes so that the question looks like 1634-1037

Then the student will change the values in those boxes to show borrowing (e.g. the 4 in the top right input becomes 14)

As you can see in here, the syntax {@a1@} (where an is the nth digit in the minuhend) does not work as I hoped. Neither does just inputting the variable name without the {@@}, this is interpreted as plain text.
It feels like this is probably a design choice but on the off chance I'm missing something... Has anyone got any ideas for me?

Cheers,
Average of ratings: -
In reply to Joel Scott

Re: Randomised Values in STACK Syntax Hints

by Christopher Sangwin -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Joel,
The syntax hint is a static string.  We've had requests to move this to full castext before (which would solve your issue), and we may do this when we re-factor the input system.  Yes, this was a design choice!
Chris