Detailed Description
A question_variant_selection_strategy that is effectively random for the first attempt, and then after that cycles through the available variants so that the students will not get a repeated variant until they have seen them all.
- Copyright:
- 2011 The Open University http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Definition at line 834 of file lib.php.
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
| int | $attemptno | The attempt number. |
| int | $userid | the user the attempt is for (defaults to $USER->id). |
Definition at line 848 of file lib.php.
Member Function Documentation
- Parameters:
-
| int | $maxvariants | the num |
| string | $seed | data that can be used to controls how the variant is selected in a semi-random way. |
- Returns:
- int the variant to use, a number betweeb 1 and $maxvariants inclusive.
Implements question_variant_selection_strategy.
Definition at line 858 of file lib.php.
Field Documentation
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/question/engine/lib.php