I want to ask how to generate non repeating numbers in my buttons. I want to generate a non repeating number because whenever i run my project it shows all the same numbers.
Below is the code I have:
int arr1[]={1,2,3,4,5,6,7,8,9,10};
int num=(int)(Math.random()*10);
one.setText(""+arr1[num]);
two.setText(""+arr1[num]);
three.setText(""+arr1[num]);
I want to know how to set the one,two and three buttons not having the same value if possible.