Implement array shuffling algorithm using a uniform probability distribution