Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static final float randomInRange(float min, float max) {
return (float) (Math.random() < 0.5 ? ((1 - Math.random()) * (max - min) + min)
: (Math.random() * (max - min) + min));
}
}