import com.google.common.collect.ObjectArrays;
import com.google.common.primitives.Doubles;
import com.google.common.primitives.Ints;
import com.google.common.primitives.Longs;
public class ArrayUtil {
<BUG>public final static <T> T[] shuffle(T[] array) {
List<T> list = new ArrayList<T>(array.length);</BUG>
Collections.addAll(list, array);
Collections.shuffle(list);
return list.toArray(array);

import com.google.common.collect.ObjectArrays;
import com.google.common.primitives.Doubles;
import com.google.common.primitives.Ints;
import com.google.common.primitives.Longs;
public class ArrayUtil {
public static <T> T[] shuffle(T[] array) {
List<T> list = new ArrayList<T>(array.length);
Collections.addAll(list, array);
Collections.shuffle(list);
return list.toArray(array);
