diff --git a/question/type/random/questiontype.php b/question/type/random/questiontype.php index 3cc08e0f5c9..db693ab01ba 100644 --- a/question/type/random/questiontype.php +++ b/question/type/random/questiontype.php @@ -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; }