public void randomBandits() {
        this.bandits = new ArrayList<Bandits>();

        Random random = new Random();
        Set<String> roadIds = new HashSet<String>();
        for (Road road : this.roads) {
            String tmp = road.getId().replace("_wstecz", "");
        	roadIds.add(tmp);
        }

        int index = 0;
        for (String roadId : roadIds) {
            ArrayList<Road> actualRoad = new ArrayList<Road>();
            for (Road road : this.roads) {
                if (road.getId().equalsIgnoreCase(roadId)) {
                    actualRoad.add(road);
                }
            }
            
            String id = "rozbojnicy" + (index+1);
            int numberOfBandits = 0;
            double energyLoss = random.nextDouble() * 0.2;
            double goldLoss = random.nextDouble() * 0.2;

            while (numberOfBandits < (actualRoad.get(0).getMaxPartNo() * actualRoad.get(0).getRobberyProbability())) {
                int frame = actualRoad.get(random.nextInt(actualRoad.size())).getMapFrame();
                Bandits bandits = new Bandits(id, energyLoss, goldLoss, this.getFrameById(frame), this.om);
                this.bandits.add(bandits);
                numberOfBandits++;
            }
            index++;
        }
        
    }