The following three static methods of the class Collections shuffle and swap elements of the provided list:
- void shuffle(List<?> list): Uses the default source of randomness to shuffle the positions of the elements in the provided list
- void shuffle(List<?> list, Random random): Uses the provided source of randomness (we will talk about such sources in a corresponding section later) to shuffle the positions of the elements in the provided list
- void swap(List<?> list, int i, int j) : Swaps the element at position i in the provided list with the element at position j