Here you can find the source of getIntRandomValue(int paramInt)
public static int getIntRandomValue(int paramInt)
//package com.java2s; //License from project: Apache License import java.util.Random; public class Main { public static int getIntRandomValue(int paramInt) { if (paramInt == 0) { return paramInt; }/* w w w . j a va2 s . c o m*/ return new Random().nextInt(paramInt); } }