package com.andrognito.pinlockview;

import java.util.Random;
/* loaded from: classes.dex */
public class ShuffleArrayUtils {
    /* JADX INFO: Access modifiers changed from: package-private */
    public static int[] shuffle(int[] array) {
        int length = array.length;
        Random random = new Random();
        random.nextInt();
        for (int i = 0; i < length; i++) {
            int change = random.nextInt(length - i) + i;
            swap(array, i, change);
        }
        return array;
    }

    private static void swap(int[] array, int index, int change) {
        int temp = array[index];
        array[index] = array[change];
        array[change] = temp;
    }
}
