private static List<Point2D> createRandomPoints(int xMin, int yMin, int xMax, int yMax, int amount) {
        List<Point2D> list = new ArrayList<Point2D>();
        for (int i = 0; i < amount; i++) {
            Double x = xMin + 1 + Math.random() * (xMax - xMin - 2);
            Double y = yMin + 1 + Math.random() * (yMax - yMin - 2);
            Point2D p = new Point2D.Double(x, y);
            list.add(p);
        }

        return list;
    }