# fyShuffle

`function` in `utils` · v0.7.0

<https://docs.seedcord.org/packages/utils/0.7.0/functions/fy-shuffle>

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.

```ts
fyShuffle<TArray>(items: TArray[]): TArray[]
```

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.

Parameters.

- `items` `TArray[]` — The array to shuffle

Returns `TArray[]`.
