Here you can find the source of randomBoundedInclusiveInt(int start, int end)
public static int randomBoundedInclusiveInt(int start, int end)
//package com.java2s; //License from project: Open Source License import java.util.concurrent.ThreadLocalRandom; public class Main { public static int randomBoundedInclusiveInt(int start, int end) { return ThreadLocalRandom.current().nextInt(start, end + 1); }/* w w w . j ava 2 s .c o m*/ }