Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4.6, 2.5.2
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
Description
Steps to reproduce:
1. Create a quiz using calculated questions.
2. Duplicate that quiz.
3. Start an attempt at each quiz using the same student account.
Actual result: you get the same variant of each quiz in both attempts.
Expected result: you get a different random variant in each quiz.
See also https://moodle.org/mod/forum/discuss.php?d=216025
The problem is with question_variant_pseudorandom_no_repeats_strategy. That only uses the userid, information from the question, and the quiz attempt number as input to the randomisation.
We should also include some element specific to the quiz (or other thing using the question). Possibily contextid or quizid?