Implement Array.shuffle (Medium)

Good evening! Here's our prompt for today.

Shuffling an array is an operation that generates a random inline permutation of the elements of a given array. Can you implement a shuffle method, that will accept one parameter - the array to shuffle, and will shuffle its elements in a random order?

An example of how your method should work, would be to generate one of the possible 24 permutations for the array in our example.

Question

JAVASCRIPT
OUTPUT
Results will appear here.