Shuffles the contents of the given array using the Fisher-Yates implementation.
The original array is modified directly and returned.
name | type | description |
---|---|---|
array | Array.<T> |
The array to shuffle. This array is modified in place. |
The shuffled array.