import java.util.*; public class RandomPerm0 { static void randomPerm(int[] A){ Random gen = new Random(); int n = A.length; ArrayList temp = new ArrayList(n); for (int x : A) temp.add(x); for (int i=n;i>0;i--){ int y = temp.get(gen.nextInt(i)); A[i-1] = y; temp.remove((Integer) y); } } // // randomly permute contents of array A // public static void main(String[] args){ int n = Integer.parseInt(args[0]); int[] B = new int[n]; for (int i=0;i