shuffle : Java Glossary

Where you need to simulate the shuffling of a deck of cards, i.e. putting them in
order by a random permutation, use
java.util.Collections.shuffle(). Even though it is a method in Collections, it only works on Lists,
though will work on Lists without RandomAccess. There is also Shuffle
class for shuffling int[] or Object[] included in com.mindprod.common18. Unfortunately, there is no
java.util.Arrays.shuffle() method. You have to
convert an array to an java.util.ArrayList, (or other
java.util.List), shuffle, then convert
back.