Fix for issue 88. Collections.shuffle bug.

This commit is contained in:
Steve Hannah 2015-03-26 09:16:59 -07:00
parent 457bd16b11
commit 7d6d777906

View File

@ -291,7 +291,7 @@ public class TCollections extends TObject {
private static void shuffleRandomAccess(TList<?> list, TRandom rnd) {
for (int i = list.size() - 1; i > 0; --i) {
int j = rnd.next(i + 1);
int j = rnd.nextInt(i + 1);
swap(list, i, j);
}
}