public static House getRandomHouse(double widthMin, double widthMax,
                                       double lengthMin, double lengthMax,
                                       int floorsMin, int floorsMax) {
        if (widthMin > widthMax){
            throw  new IllegalArgumentException(
                    "widthMin must be lesser than widthMax");
        } else if (lengthMin > lengthMax) {
            throw  new IllegalArgumentException(
                    "lengthMin must be lesser than lengthMax");
        } else if (floorsMin > floorsMax) {
            throw  new IllegalArgumentException(
                    "floorsMin must be lesser than floorsMax");
        } else if (widthMin <= 0) {
            throw  new IllegalArgumentException(
                    "widthMin must me positive");
        } else if (lengthMin <= 0) {
            throw  new IllegalArgumentException(
                    "lengthMin must me positive");
        } else if (floorsMin <= 0) {
            throw  new IllegalArgumentException(
                    "floorsMin must me positive");
        } else {
            //everything is ok
        }
        Random gen = new Random();
        double width = widthMin + gen.nextDouble() * (widthMax - widthMin);
        double length = lengthMin + gen.nextDouble() * (lengthMax - lengthMin);
        int floors = floorsMin + gen.nextInt(floorsMax - floorsMin);
        ValueHouse result = new ValueHouse(width, length, floors);
        return result;
    }