protected int[] random(int d){ int []x=new int[d]; for(int i=0;i