public static ArrayList<String> randomList(int count) {
        Random random = new Random();
        HashSet<String> items = new HashSet<String>();

        // Make sure that don't infinity loop
        count = Math.min(count, CHEESES.length);

        while (items.size() < count) {
            items.add(CHEESES[random.nextInt(CHEESES.length)]);
        }

        return new ArrayList<String>(items);
    }
Return a list of random cheeses.

@param count the amount of cheeses to return.
SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/common/dummydata/Cheeses.java