Here you can find the source of randomIndexs(int count, int bound)
private static int[] randomIndexs(int count, int bound)
//package com.java2s; //License from project: Apache License import java.util.concurrent.ThreadLocalRandom; public class Main { private static final ThreadLocalRandom random = ThreadLocalRandom .current(); private static int[] randomIndexs(int count, int bound) { int[] indexs = new int[count]; for (int i = 0; i < count; i++) { indexs[i] = random.nextInt(bound); }/*www.j a v a2s . c om*/ return indexs; } }