Here you can find the source of getRandomIntegerInRange(Random p_76136_0_, int p_76136_1_, int p_76136_2_)
public static int getRandomIntegerInRange(Random p_76136_0_, int p_76136_1_, int p_76136_2_)
//package com.java2s; //License from project: Open Source License import java.util.Random; public class Main { public static int getRandomIntegerInRange(Random p_76136_0_, int p_76136_1_, int p_76136_2_) { return p_76136_1_ >= p_76136_2_ ? p_76136_1_ : p_76136_0_.nextInt(p_76136_2_ - p_76136_1_ + 1) + p_76136_1_; }// w w w.j a v a2 s .co m }