So I'm using this function to make a random choice from a string array list
String[] names;
String random;
    Resources res = getResources();
    names = res.getStringArray(R.array.RandomList);
                        Random r = new Random();
                        int idx = r.nextInt(names.length);
                        random = (names[idx]);
                        mainText.setText(random);
but I want to know how to make sure that it won't choose the same item twice, does anyone know how to do that, thanks
