Here you can find the source of randomNumber(int minimum, int maximum)
private static int randomNumber(int minimum, int maximum)
//package com.java2s; //License from project: Apache License public class Main { private static int randomNumber(int minimum, int maximum) { return (int) (Math.random() * maximum + minimum); }/*from w ww . j a v a2 s.c om*/ }