@ -0,0 +1,7 @@
export function fisherYatesShuffle(arr: any[]): any[] {
for (let i = arr.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[arr[i], arr[j]] = [arr[j], arr[i]];
}
return arr;