private String shuffleOptions() {
private String shuffleOptions(boolean shuffle) {
    private String shuffleOptions() {        Iterator it = listOptions.iterator();        Vector v = new Vector();        Vector vRandom = new Vector();        int optionNumber = 0;        while (it.hasNext()) {            Element element = (Element) it.next();            String tag = element.getQName();            Attributes atts = element.getAttributes();            if (tag.equals("response_label") || tag.equals("response_na")) {                optionNumber++;                if (atts.getValue(atts.getIndex("rshuffle")).equals("Yes")) {                    v.add("");                    vRandom.add(new Integer(v.size()).toString());                    continue;                }                v.add(new Integer(v.size() + 1).toString());            }        }        Random r = new Random();        boolean ready = false;        it = vRandom.iterator();        while (it.hasNext()) {            String id = (String) it.next();            while (!ready) {                int index = (r.nextInt(1000) % optionNumber);                if (v.elementAt(index).equals("")) {                    v.removeElementAt(index);                    ready = true;                    v.insertElementAt(id, index);                } else                    ready = false;            }            ready = false;        }        return v.toString();    }