title: Pseudo code to C++ code
body: <p>I need some help to convert this pseudo code to c++ code</p>
  
  <pre><code>RandomizeArray(String: array[])
      Integer: max_i = *Upper bound of array*
      For i = 0 To max_i - 1
      // Pick the item for position i in the array.
      Integer: j = *pseudorandom number between i and max_i inclusive*
      *Swap the values of array[i] and array[j]*
      Next i  
  End RandomizeArray
  </code></pre>
  
  <p>I tried this code but it seems I did something wrong. or is it correct?</p>
  
  <pre><code>char RandomizeArray[];
  int max_i = 10;
  for(int i=0; i &lt; max_i; i++)
  {
       char temp;
       temp = RandomizeArray[i];
       int j = rand() % max_i + i;
       RandomizeArray[i] = RandomizeArray[j];
       RandomizeArray[j] = temp;
  }
  </code></pre>
  
  <p>I think it might be correct but I don't understand the part where he wants me to "Pick the item for position i in the array."</p>