Suppose I have an arraylist of integers ... there is a way that I can generate a random permutation / arrangement of elements in an arraylist
therefore, if the list is {1,2,3,4,5,6}
calling some randomPermute () method will change it to something random, for example
{1,3,2,6,5,4}
kamikaze_pilot
source share