Here you can find the source of get_a_number_between_min_and_max(int min, int max)
public static int get_a_number_between_min_and_max(int min, int max)
//package com.java2s; //License from project: Open Source License public class Main { public static int get_a_number_between_min_and_max(int min, int max) { return java.util.concurrent.ThreadLocalRandom.current().nextInt(min, max + 1); }//from w w w . j av a2s .com }