Here you can find the source of randIn(double min, double max)
public static double randIn(double min, double max)
//package com.java2s; //License from project: Open Source License public class Main { public static double randIn(double min, double max) { return (max - min) * unitRand() + min; }/*from w w w .ja v a2s.c o m*/ public static double unitRand() { return (double) Math.random(); } }