Here you can find the source of randomInIntervall(float low, float high)
public static float randomInIntervall(float low, float high)
//package com.java2s; /**// w ww .ja v a 2s. c o m * Distributed under the MIT License. (See accompanying file LICENSE or copy at * https://github.com/raphaelmenges/schaugenau/blob/master/src/LICENSE) * * Helpers. * * @author Raphael Menges * */ public class Main { public static float randomInIntervall(float low, float high) { return (float) (Math.random() * (high - low) + low); } }