title: How to choose a random case in a switch statement
body: <p>I want to output several questions, but in a random order. How can I ask all questions randomly without repeating one?</p>
  
  <pre><code>for(int i=0; i&lt;4; i++)
  {
      int question=rand()%4;
      switch(question)
      {
          case 0:
              NSLog(@"What is your name");
              break;
          case 1:
              NSLog(@"Who are you");
              break;
          case 2:
              NSLog(@"What is your name");
              break;
          case 3:
              NSLog(@"How do you do");
              break;
          case 4:
              NSLog(@"Are you?");
              break;
      }
  }
  </code></pre>