From c6b82865d4e25faa8c34b8123fb5f647c1993a13 Mon Sep 17 00:00:00 2001 From: AlexBocken Date: Wed, 12 Jul 2023 09:51:33 +0200 Subject: [PATCH] randomize determined by day alone, not order of execution as well --- src/lib/js/randomize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/js/randomize.js b/src/lib/js/randomize.js index 8e48b4e..cff8fac 100644 --- a/src/lib/js/randomize.js +++ b/src/lib/js/randomize.js @@ -9,9 +9,9 @@ function mulberry32(a) { return ((t ^ t >>> 14) >>> 0) / 4294967296; } } -let rand = mulberry32(seed) export function rand_array(array){ + let rand = mulberry32(seed) array.sort((a,b) => 0.5 - rand()) return array }