Snap Interview Question

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