The Fisher–Yates shuffle is an algorithm for generating a random permutation of a finite sequence. Use this tag for questions about this algorithm and it's implementation.