From 437d5e7c7c24306f267a5d0286cd5dcdea63b129 Mon Sep 17 00:00:00 2001 From: MapleAtMorning <79129529+MapleAtMorning@users.noreply.github.com> Date: Mon, 3 Jun 2024 10:33:02 -0500 Subject: [PATCH] math fix --- js/homepage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/homepage.js b/js/homepage.js index 20d6755..980b603 100644 --- a/js/homepage.js +++ b/js/homepage.js @@ -112,8 +112,7 @@ delayedLoop(timeBetweenRotate); const huma = document.getElementById("hiddenhuma") function hidehuma(){ - let i = Math.round(Math.random() * 25) - console.log(i) + let i = Math.floor(Math.random() * 25 + 1) if (i == 1){ huma.style.display = "block" }