diff --git a/src/app/components/bingocontroller.tsx b/src/app/components/bingocontroller.tsx index d3857a4..5461e46 100644 --- a/src/app/components/bingocontroller.tsx +++ b/src/app/components/bingocontroller.tsx @@ -4,6 +4,7 @@ import React from 'react' import Bingo from './bingo' function FisherYatesShuffle(array:string[]):string[]{ + array = array.slice(); for(let i = array.length - 1; i > 0; i--){ const j = Math.floor(Math.random() * (i + 1)); const temp = array[i];