Domanda di colloquio di Snap

How to return a permutation of an array by equal probability?