Here you can find the source of shuffle(Object[] objs, Random random, int start, int len)
public static void shuffle(Object[] objs, Random random, int start, int len)
//package com.java2s; //License from project: Open Source License import java.util.Random; public class Main { public static void shuffle(Object[] objs, Random random, int start, int len) { for (int i = 0; i < len; i++) { int j = random.nextInt(len); Object tmp = objs[i]; objs[i] = objs[j];/* ww w . j a v a 2 s. com*/ objs[j] = tmp; } } public static void shuffle(Object[] objs, Random random) { shuffle(objs, random, 0, objs.length); } }