I am trying to create a permutation of a hash map which keys the keys and shuffles them in a random order multiple times but keeps the same object.
So far i have:
Map<Integer, GeoPoint> mapPoints = new HashMap<Integer, GeoPoint>();
ArrayList<Integer> keys2 = new ArrayList<Integer>(mapPoints.keySet());
for (int t =0; t < 50; t ++){
Collections.shuffle(keys2);
}
But from what i can gather it is not shuffling them. Can anyone see what im doing wrong.