public static int rand(final int lowerBound, final int upperBound) {
        return new Random().nextInt(upperBound - lowerBound + 1) + lowerBound;
    }
returns random number between (and including) bounds
main/src/main/java/cgeo/geocaching/maps/routing/RouteOptimizationHelper.java