moodle-qtype_formulas
moodle-qtype_formulas copied to clipboard
User-specific unique variables and a seed
Dear developers, I enjoyed Formulas in several courses. It is a wonderful tool for shorter questions. However, more complex tasks require even hours of calculation and work interruption. Once a browser closes, the random variables are lost and on the next attempt the random set becomes different. It would be nice if a student has the same set of random variables every time.
UserID in Moodle is a unique identifier, that could be used like a seed for random number generator. I could imagine extension e.g.: Random variables box: a={1:10:0.1 | UserID}; b={1:10:0.1 | UserID+1}; which would impose condition using the seed from UserID. The seed could be further increased/decreased in order to yield different "random" number from that range. Numbers a and b would be the same every time for the same user.
Best regards. Vit