grab a random element from an arrayList and replace it with the last element in the array list code example
Example: get n random elements from list java
List<Foo> list = createItSomehow();
Collections.shuffle(list);
Foo foo = list.get(0);
List<Foo> list = createItSomehow();
Collections.shuffle(list);
Foo foo = list.get(0);