Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
The interface for strategies for controlling which variant of each question is used. More...
Public Member Functions | |
choose_variant ($maxvariants, $seed) | |
The interface for strategies for controlling which variant of each question is used.
question_variant_selection_strategy::choose_variant | ( | $maxvariants, | |
$seed ) |
int | $maxvariants | the num |
string | $seed | data that can be used to controls how the variant is selected in a semi-random way. |
int | the variant to use, a number betweeb 1 and $maxvariants inclusive. |
Implemented in core_question\engine\variants\least_used_strategy, question_variant_forced_choices_selection_strategy, question_variant_pseudorandom_no_repeats_strategy, and question_variant_random_strategy.