private float randomRange(Random random, float min, float max) {
        return (random.nextInt() * (max - min) / Integer.MAX_VALUE) + min;
    }
Generates a new hill of random size and height at a random position in
the heightmap. This is the actual Hill algorithm. The <code>Random</code>
object is used to guarantee the same heightmap for the same seed and
attributes.

@param tempBuffer
           the temporary height map buffer
@param random
           the random number generator
jme3-terrain/src/main/java/com/jme3/terrain/heightmap/HillHeightMap.java