From cd63bcb801361edc368dfca4b85b0f807e809de2 Mon Sep 17 00:00:00 2001 From: Erik Mackdanz Date: Tue, 28 Jan 2025 12:01:53 -0600 Subject: [PATCH] Implement solution --- test.html | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 92 insertions(+), 3 deletions(-) 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