shuffle()
Shuffles an Enumerable.
Returns
(Enumerable): new shuffled Enumerable.
Example
Enumerable
.from([1, 2, 3, 4, 5])
.shuffle()
.toArray();
// not [1, 2, 3, 4, 5]
// Eg: [5, 3, 1, 4, 2]
shuffle()
Shuffles an Enumerable.
(Enumerable): new shuffled Enumerable.
Enumerable
.from([1, 2, 3, 4, 5])
.shuffle()
.toArray();
// not [1, 2, 3, 4, 5]
// Eg: [5, 3, 1, 4, 2]