package com.ardverk.utils;

import java.util.Random;

public class ArrayUtils {

    private static final Random GENERATOR = new Random();
    
    private ArrayUtils() {}
    
    public static <T> void swap(T[] elements, int i, int j) {
        T element = elements[i];
        elements[i] = elements[j];
        elements[j] = element;
    }
    
    public static <T> T[] shuffle(T[] elements) {
        for (int i = 0; i < elements.length; i++) {
            swap(elements, i, GENERATOR.nextInt(elements.length));
        }
        return elements;
    }
}

@@ -21,16 +21,51 @@
 utils;%0A%0A
+import java.security.SecureRandom;%0A
 import j
@@ -157,16 +157,22 @@
 R = new 
+Secure
 Random()

Use SecureRandom