protected void shufflePreferences() {
RandomWrapper random = RandomUtils.getRandom();
/* Durstenfeld shuffle */
for (int currentPos = cachedUserIDs.length - 1; currentPos > 0; currentPos--) {
int swapPos = random.nextInt(currentPos + 1);
swapCachedPreferences(currentPos, swapPos);
}
}
private void swapCachedPreferences(int posA, int posB) {