diff --git a/quiz.js b/quiz.js index d7891ae023cef25c2300fe8b203105628a83a4fe..5638da22ac9be69c9885b2c03b80566fef2e5cd9 100644 --- a/quiz.js +++ b/quiz.js @@ -7,7 +7,7 @@ * http://creativecommons.org/publicdomain/zero/1.0/. */ "use strict"; -const version = "$Id: quiz.js,v 1.28 2024/01/21 19:44:14 oj14ozun Exp oj14ozun $"; +const version = "$Id: quiz.js,v 1.29 2024/01/21 21:34:05 oj14ozun Exp oj14ozun $"; const js_version = document.getElementById("js-version"); js_version.innerText = version; @@ -58,7 +58,7 @@ function get_data(q) { function evaluate(q) { const data = get_data(q); - return data["right"] ** 2 - data["wrong"] + 4 * Math.random() - 2; + return (1 - Math.random() ** 3) * (data["right"] ** 2 - data["wrong"]) + 6 * Math.random() - 3; } function update_stats(q) {