This commit is contained in:
CHIEFSOFT\ameye
2024-08-20 10:26:01 -04:00
parent 66e9b06c51
commit 34c9ef0e58
+3 -3
View File
@@ -22,7 +22,7 @@ class WrenchResources extends BaseController
$option_mix=[];
for ($ii=1; $ii<=4; $ii++){
if ($ii== $ansPos){
$next_question["option_mix"][]= $c;
$option_mix[]= $c;
}else
{
$ansRand = rand(1000,9999);
@@ -30,11 +30,11 @@ class WrenchResources extends BaseController
}
}
//[ rand(1000,9999), $c , rand(1000,9999)]
$next_question = [
"question" => "What is C ? <br> C = $a + $b .",
"option" => [ rand(1000,9999), $c , rand(1000,9999)],
"option" => $option_mix,
"answer" => $c,
'option_mix' => $option_mix,
"last" => false,