Is Collections.shuffle(list); Fisher Yates Algorithm?

122 views Asked by At
List<TriviaQuestion> list;
Collections.shuffle(list);

is Collections.shuffle(list); can it be called Fisher Yates?

for (int i = n-1; i > 0; i--) {
            int j = r.nextInt(i+1);
            int temp = arr[i];
            arr[i] = arr[j];
            arr[j] = temp;
        }
0

There are 0 answers