int i = (int)(myArrayList.size() * Math.random()) //you can get the random index String url = myArrayList.remove(i), //then you can remove that variable from list