private Solve randomSolve(int n) {
        Solve slv = new Solve();
        Random rand = new Random();
        for (int i = 0; i < chromosomesize; i++) {
            slv.Colors.add(rand.nextInt(maxcolor));
        }
        slv.ValueSolve(matr);
        return slv;
    }