From dae81444474864b70a556c3bedf7387ceb2f84e4 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sun, 23 Apr 2023 11:46:26 -0700 Subject: [PATCH] fix math bug oops --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6fd5d12..ac3df0f 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,7 @@ if (playAtRandom.checked) { timeSincePlay += 1; if (timeSincePlay >= 60) { - const v = random(randomChance.value); + const v = random(randomChance.value * 60); if (v === 0) { play(); timeSincePlay = 0;