Is there a way to configure multiple random activities in a course to avoid choosing same activity from pool?
It's possible for two random modules to choose the same activity.
Eg. if you have 5 quizzes and two activities, it could choose quiz 1 for both.
Is there any way to avoid this?
Otherwise, how would you extend the plugin to implement this? It seems a bit tricky since you'd have to check all the other random activities for that user but they're not 'assigned' as such, they're looked up every time using the seed. If we want to override the randomactivity_get_assigned_activity lookup to filter out previously assigned activities, we have to use the same function in any other random activities anyway to get the users currently assigned activities and it becomes a recursive problem.
Just want to reach out to see if I'm thinking about this in the right way and if there's an alternative solution, thanks