From 01bb194a4ec39a74e06f83e28814b779fccdb886 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Mon, 10 Nov 2008 07:32:05 +0000 Subject: [PATCH] MDL-17185 "random questions always the same!" Randomized question selection --- question/type/random/questiontype.php | 1 + 1 file changed, 1 insertion(+) diff --git a/question/type/random/questiontype.php b/question/type/random/questiontype.php index 3cc08e0f5c..db693ab01b 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; } -- 2.39.5