From: Erik Mackdanz Date: Tue, 28 Jan 2025 18:01:53 +0000 (-0600) Subject: Implement solution X-Git-Url: https://git.humopery.space/?a=commitdiff_plain;h=cd63bcb801361edc368dfca4b85b0f807e809de2;p=rustici.git Implement solution --- diff --git a/test.html b/test.html index bcf6517..6d79dbe 100644 --- a/test.html +++ b/test.html @@ -60,9 +60,98 @@ // be in a random order. The order of the choices within each question should also be randomized. // function randomizeTest (test) { - // - // Your code to randomize questions and answers goes here - // + + // initialize outputs + let questionsReordered = []; + let choicesReordered = []; + let answersReordered = []; + + // Track whether we've previously chosen a randomly selected question + // with an array like [true, false, false, true] + let questionChosen = []; + for(i=0; i