Moodle  2.2.1
http://www.collinsharper.com
question_variant_selection_strategy Interface Reference
Inheritance diagram for question_variant_selection_strategy:

Public Member Functions

 choose_variant ($maxvariants, $seed)

Detailed Description

The interface for strategies for controlling which variant of each question is used.

Definition at line 801 of file lib.php.


Member Function Documentation

choose_variant ( maxvariants,
seed 
)
Parameters:
int$maxvariantsthe num
string$seeddata 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.

Implemented in question_variant_pseudorandom_no_repeats_strategy, and question_variant_random_strategy.

Here is the caller graph for this function:


The documentation for this interface was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations