]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17185 "random questions always the same!" Randomized question selection
authorjamiesensei <jamiesensei>
Mon, 10 Nov 2008 07:32:05 +0000 (07:32 +0000)
committerjamiesensei <jamiesensei>
Mon, 10 Nov 2008 07:32:05 +0000 (07:32 +0000)
question/type/random/questiontype.php

index 3cc08e0f5c99c88d6507976437087555e140faa1..db693ab01ba51a50d1d9f3c91833281ac9c359a2 100644 (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;
     }