From b0ac022ffb44ddedfb0b767eab388bed252c7b91 Mon Sep 17 00:00:00 2001 From: Drew Youngren Date: Mon, 13 Nov 2023 14:02:03 -0500 Subject: [PATCH] Fix index bug --- media/src/Panel.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/media/src/Panel.svelte b/media/src/Panel.svelte index 2ed28af5..21112ff0 100644 --- a/media/src/Panel.svelte +++ b/media/src/Panel.svelte @@ -172,9 +172,9 @@ }, field: () => { const comps = ['1', '-1', 'x', 'y', 'z', '-x', '-y', '-z']; - const p = comps[Math.ceil(comps.length * Math.random())]; - const q = comps[Math.ceil(comps.length * Math.random())]; - const r = comps[Math.ceil(comps.length * Math.random())]; + const p = comps[Math.floor(comps.length * Math.random())]; + const q = comps[Math.floor(comps.length * Math.random())]; + const r = comps[Math.floor(comps.length * Math.random())]; return { p, q, r, nVec: '6' }; },