Here you can find the source of random(float min, float max)
private static float random(float min, float max)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { private final static Random r = new Random(); private static float random(float min, float max) { final float d = max - min; return min + d * r.nextFloat(); }//from ww w . j ava 2 s . c o m }