Just as one can currently select a random question from a given category, I'm looking at adding a random question from a given set of tags. I'd like to ask if that might be useful to others, and for some thoughts on implementation.
As an example, suppose you had a quiz about Moodle development. One of the questions is "which directory contains question types?" That question might be tagged with these tags:
Directory/folder structure Quiz Extending Moodle
You could then add a random Extending Moodle question and that one might be chosen. That question would also fill a requirement for a random Directory / Folder structure question. Does that sound useful to anyone?
I see that "random" is a question type in question/type/random/ , so that suggests that I should be able to create a very similar type called question/type/randombytag/ . That would be great if it could be done as a question type, like random is, because that would allow the new feature to be self-contained, without affecting any code from mainline. Hacking Quiz core has a number of challenges that make it expensive in terms of time and effort, and new features may not be accepted into mainline.
On the other hand, within mod/quiz/ I see addrandom.php and addrandomform.php. Drats! Before I spend a couple of hours groking the code in both to see how they interact, I figured I'd ask here if someone already familiar with the how that works can say whether or not you'd think it could be done purely as a new qtype.
PS - allowing questions to be in multiple categories might be a cleaner way to accomplish the same thing, but that would definitely involve significant changes to the question bank and to Quiz, changes which I'm not currently able to steer to completion and acceptance.