MDL-17185 "random questions always the same!" Randomized question selection
This commit is contained in:
@@ -95,6 +95,7 @@ class random_qtype extends default_questiontype {
|
||||
AND qtype NOT IN ($QTYPE_EXCLUDE_FROM_RANDOM)", null, '', 'id')) {
|
||||
$catrandoms = array();
|
||||
}
|
||||
$catrandoms = swapshuffle_assoc($catrandoms);
|
||||
return $catrandoms;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user