Skip to content

Commit

Permalink
randomizeElements
Browse files Browse the repository at this point in the history
  • Loading branch information
ircfspace committed Mar 6, 2024
1 parent 03c5961 commit 4873877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/randomizeElements.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export function randomizeElements<T>(arr: T[]) {
let result = [...arr].sort(() => 0.5 - Math.random() );
result = result.slice(0, 100);
result = result.slice(0, 150);
result = result.sort(() => 0.5 - Math.random() );
result = result.sort(() => 0.5 - Math.random() );
return result;
Expand Down

0 comments on commit 4873877

Please sign in to comment.