MDL-17185 "random questions always the same!" Randomized question selection

This commit is contained in:
jamiesensei
2008-11-10 07:32:05 +00:00
parent 91ec2c427a
commit 01bb194a4e
+1
View File
@@ -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;
}