English
Appearance
Randomly sort the array
function shuffle<T>(arr: T[]): T[];
import { shuffle } from 'rattail' const arr = [1, 2, 3, 4, 5] console.log(shuffle(arr)) // [3, 1, 4, 5, 2]
arr
The array after shuffling