From fd0a062d7bab7b57b8221ccd14e9cd2362dc4e2c Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Fri, 14 Feb 2025 18:54:01 -0500 Subject: [PATCH] [O] Limit Range --- src/App.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.svelte b/src/App.svelte index 42759de..a336d84 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -48,7 +48,8 @@ // Randomize the dir and position state = 1 dir = dirs[Math.floor(Math.random() * dirs.length)] - pos = Math.random() + // Pos between 0.05 and 0.95 + pos = Math.random() * 0.9 + 0.05 await divStyles() }