title: Reading random values from an array
body: <p>I have an array with a 14 strings. I want to display each of these 14 strings to the user without duplicates. The closest I got was creating an array of integers and shuffling their values, and then reading from the array of strings using one of the numbers from the int array as the index:</p>
  
  <pre><code>    //appDelegate.randomRiddles is an array of integers that has integer values randomly
       appDelegate.randomRiddlesCounter++;
       NSNumber *index=[appDelegate.randomRiddles objectAtIndex:appDelegate.randomRiddlesCounter];
       int i = [index intValue];
       while(i&gt;[appDelegate.currentRiddlesContent count]){
          appDelegate.randomRiddlesCounter++;
          index=[appDelegate.randomRiddles objectAtIndex:appDelegate.randomRiddlesCounter];
          i = [index intValue];
                      }
  hintText.text = [[appDelegate.currentRiddlesContent objectAtIndex:i] objectForKey:@"hint"];
  questionText.text = [[appDelegate.currentRiddlesContent objectAtIndex:i] objectForKey:@"question"];
  </code></pre>
  
  <p>But my way is causing crashing and duplicates. Oh and each time I read a value from the strings array, that string is removed from the array making its count decrease by 1. So that complicates this a little bit.</p>