Package java.util
Class Collections
static void shuffle(List l)
static void shuffle(List l, Random r)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Permute list, traversing the list backwards, from the last element up to the second, repeatedly swapping a randomly selected element into the "current position". Elements are randomly selected from the portion of the list that runs from the first element to the current position, inclusive. This method runs in linear time for a "random access" list (which provides near-constant-time positional access). It may require quadratic time for a "sequential access" list.
shuffle(List l) method:
Randomly permutes the specified list using a default source of randomness. All permutations occur with approximately equal likelihood.
shuffle(List l, Random r) method:
Randomly permute the specified list using the specified source of randomness.