diff --git a/src/timelines/TootComposer.tsx b/src/timelines/TootComposer.tsx index 8e4ed25..b50ba64 100644 --- a/src/timelines/TootComposer.tsx +++ b/src/timelines/TootComposer.tsx @@ -183,7 +183,8 @@ function randomChoose( rn: number, K: T, ): T extends Array ? E : never { - const idx = Math.round(rn * K.length) - 1; + const idx = Math.floor(rn * K.length); + console.log(idx, K.length); return K[idx]; }