return (Entity)vector.get(random);
return (Entity)vector.elementAt(random);
    public Entity getAffaTarget(Coords c) {        Vector vector = new Vector();        if ( this.board.contains(c) ) {            for (Enumeration i = entities.elements(); i.hasMoreElements();) {                final Entity entity = (Entity)i.nextElement();                if (c.equals(entity.getPosition()) && entity.isTargetable() &&                    !(entity instanceof Infantry)) {                    vector.addElement(entity);                }            }        }        if (!vector.isEmpty()) {            int count = vector.size();            int random = Compute.randomInt(count);            return (Entity)vector.get(random);        } else {            return null;        }    }