API Reference

Returns an array with the items randomly ordered.

function shuffle<T>(array: T[]): T[]

// Example:

shuffle([1, 2, 3, 4, 5]) //=> [3, 5, 1, 4, 2]