Shuffle a String, Number, or Array.
Syntax
Parameters
subject
- The entity to shuffle.false
(default) - The keys in the Array returned will be re-assigned from 0
.true
- The original keys will be retained.
Result
subject
.
Returns subject
with its elements in random order.