Java Random Int randomInIntervall(float low, float high)

Here you can find the source of randomInIntervall(float low, float high)

Description

random In Intervall

License

MIT License

Declaration

public static float randomInIntervall(float low, float high) 

Method Source Code

//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);
    }
}

Related

  1. randomCommonStr(int min, int max, int n)
  2. randomDoubleMatrix(int rows, int columns)
  3. randomFloatInInterval(float lower, float upper)
  4. randomHex(int length)
  5. randomHexOfInt(int min, int max)
  6. randomInt(double arg)
  7. randomInt(final int max)
  8. randomInt(final int min, final int max)
  9. randomInt(final int upToNotInclusive)