import java.util.*; public class Shuffle { public static void main(String args[]) { List l = new ArrayList(); for (int i=0; i1; i--) swap(list, i-1, rnd.nextInt(i)); } }