Shuffles an array using the Fisher-Yates algorithm. This function creates a new array with the same elements in a random order, without modifying the original array.
fyShuffle<TArray>(items: TArray[]): TArray[]
const numbers = [1, 2, 3, 4, 5];const shuffled = fyShuffle(numbers);// shuffled might be [3, 1, 5, 2, 4]// numbers is still [1, 2, 3, 4, 5]