title: Choose random code within switch statement
body: <p>I'm using a switch statement with several cases.</p>
  
  <p>When one of the cases is chosen, how can I randomly choose a block of code within that case, but <b>without</b> using a nested switch statement?</p>
  
  <p>For example:</p>
  
  <pre><code>switch ($choose_case){
  
  case 1:
  //some code
  break;
  
  case 2:
  //some code
  break;
  
  case 3:
  (random block of code #1)
  (random block of code #2)
  =randomly choose #1 or #2
  break;
  
  }
  </code></pre>