public static Map<String, Chromosome> getRandomGenes(String fileName, int number) throws FileNotFoundException
    {
        ArrayList<ArrayList<String>> arrrrr = loadArrayList(fileName);
        Map<String, Chromosome> chrs = getSorteredMap();
        ArrayList<Integer> repeat = new ArrayList<Integer>();
        ArrayList<String> listGenes = new ArrayList<String>();
        Random rand = new Random();
        int value;
        while (listGenes.size() != number)
        {
            value = rand.nextInt(arrrrr.size());
            if (!repeat.contains(value)) listGenes.add(arrrrr.get(value).get(3)); // TODO: try catch if wrong format file
        }
        CharSequence cq = "";
        String resultList = "";
        for (String str: listGenes)
        {
            resultList += str + ", ";
        };
        cq = resultList;
        if (!cq.equals(null)) {
            try {
                File flt = new File("randomList.txt");
                FileWriter wrt = new FileWriter(flt);
                wrt.append(cq);
                wrt.flush();
            } catch (IOException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            }
        }
        chrs = loadFromListNameFile("randomList.txt");
        return chrs;
    }