private String getRule() {
        String rule = "";
        switch (cmbAlgorithme.getSelectedIndex()) {
            case 0:
                rule = "23/3";
                break;

            case 1:
                rule = "23/36";
                break;

            case 2: // Random
                Random rnd = new Random();
                String survive = "";
                // Survive
                for (int i = 0; i < rnd.nextInt(9); i++) {
                    survive += rnd.nextInt(9);
                }

                String born = "";

                for (int i = 0; i < rnd.nextInt(9); i++) {
                    born += rnd.nextInt(9);
                }

                rule = survive + "/" + born;
                System.out.println(rule);
                break;

            case 3:
                rule = vTxtRule.getText();
        }

        return rule;
    }