Amazon interview question

Randomize an array such that all outcomes are equally likely