midPointStep((double)hilliness/1000, size, 1000,
midPointStep((double)hilliness/100, size, 100,
    protected static void midPoint(int hilliness, int width, int height, int elevationMap[][]) {        int size;        int steps = 1;        int tmpElevation[][];                size = (width > height) ? width : height;        while (size > 0) {            steps++;            size /= 2;        }        size = (1 << steps) + 1;        tmpElevation = new int[size + 1][size + 1];        /* init elevation map with 0 */        for (int w = 0; w < size; w++)            for (int h = 0; h < size; h++)                if ((w < width) && (h < height)) {                    tmpElevation[w][h] = elevationMap[w][h];                } else {                    tmpElevation[w][h] = 0;                }        for (int i = steps; i > 0; i--) {            midPointStep((double)hilliness/1000, size, 1000,                    tmpElevation, i, true);        }        for (int w = 0; w < width; w++) {            for (int h = 0; h < height; h++) {                elevationMap[w][h] = tmpElevation[w][h];            }        }    }