From 5e477fc76b87c21d3be69c433720f970fddea998 Mon Sep 17 00:00:00 2001 From: BRNSystems <70092437+BRNSystems@users.noreply.github.com> Date: Sun, 16 Jan 2022 18:51:14 +0100 Subject: [PATCH] randomize periodically --- index.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 28654a1..f9f2347 100644 --- a/index.js +++ b/index.js @@ -97,14 +97,18 @@ function randomizeaux(){ } } +function randomizeall(){ + randomizetable(); + writegrid(); + randomizeaux(); + writeauxgrid(); +} + function main() { inittable(); initauxtable(); if (randomize) { - randomizetable(); - writegrid(); - randomizeaux(); - writeauxgrid(); + setInterval(randomizeall, 100); } }