I have an XML array that I access to pull a random question from. How would I go about making sure there is no duplicates pulled? My current code follows.
    private void getQuestion() {
    // TODO Auto-generated method stub
    res = getResources();
    qString = res.getStringArray(R.array.questions);
    rQuestion = qString[rgenerator.nextInt(qString.length)];
    tokens = new StringTokenizer(rQuestion, ":");
    wordCount = tokens.countTokens();
    sep = new String[wordCount];
    wArray = 0;
    while (tokens.hasMoreTokens()) {
        sep[wArray] = tokens.nextToken();
        wArray++;
    }
}
Any help would be appreciated.
 
     
     
     
    