Here you can find the source of Random(int a, boolean Zero)
public static double Random(int a, boolean Zero)
//package com.java2s; //License from project: Open Source License public class Main { public static double Random(int a, boolean Zero) { if (Zero) { return Math.random() * a; } else {/*from w w w .j a va2 s . co m*/ return Math.random() * (a - 1) + 1; } } }