From c7630349d5faeee2751a9fa7e8e41825b114513a Mon Sep 17 00:00:00 2001 From: Philip Kaludercic <philip.kaludercic@fau.de> Date: Fri, 12 Jan 2024 10:17:23 +0000 Subject: [PATCH] Update comment in shuf --- quiz.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quiz.js b/quiz.js index c9a7cea..be35119 100644 --- a/quiz.js +++ b/quiz.js @@ -1,7 +1,7 @@ // This horrible file is distributed under the CC0 license. Consult // ./LICENSE for more details. -// $Id: quiz.js,v 1.2 2024/01/11 16:19:30 oj14ozun Exp oj14ozun $ +// $Id: quiz.js,v 1.3 2024/01/12 10:15:28 oj14ozun Exp oj14ozun $ "use strict"; @@ -27,8 +27,7 @@ var opts = []; // DOM objects of each answer var progress = JSON.parse(window.localStorage.getItem("progress")) || {}; -function shuf(arr) { - // shuffle option-order using Fisher–Yates shuffle +function shuf(arr) { // shuffle arr using Fisher–Yates shuffle for (let i = 0; i < arr.length - 1; i++) { const j = Math.floor(Math.random() * arr.length); const tmp = arr[j]; -- GitLab