I\'m trying to create an android application which will generate random series of values (integer numbers in this case) in a given range (but NOT equal betw
public int[] generateSeries(){ int[] R = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}; int [] newarray=new int[5]; Collections.shuffle(Arrays.asList(R)); for(int i=0;i<5;i++) { newarray[i]=R[i]; System.out.println("values => "+R[i]); } return newarray;
hope use full to you....