# fyShuffle

`function` in `utils` · v0.8.17

<https://seedcord.org/docs/packages/utils/0.8.17/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[]`

Returns `TArray[]`.
