Java ThreadLocalRandom randomIndexs(int count, int bound)

Here you can find the source of randomIndexs(int count, int bound)

Description

random Indexs

License

Apache License

Declaration

private static int[] randomIndexs(int count, int bound) 

Method Source Code

//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;
    }
}

Related

  1. randomDouble(final double min, final double max)
  2. randomElement(Collection c, int n, boolean unique)
  3. randomEnum(Class clazz)
  4. randomFishType()
  5. randomFixedChars(int size, List pool)
  6. randomInRange(int min, int max)
  7. randomInt()
  8. randomInt(int bound)
  9. randomInteger(int min, int max)