public static void shuffle ( List < ? > list ) { Random rnd = r ; if ( rnd == null ) r = rnd = new Random ( ) ; // harmless race. shuffle ( list , rnd ) ; }
Randomly permutes the specified list using a default source of randomness . All permutations occur with approximately equal likelihood .