title: Is it possible to random_shuffle an array of int elements?
body: <p>I was reading up on this : <a href="http://www.cplusplus.com/reference/algorithm/random_shuffle/" rel="noreferrer">http://www.cplusplus.com/reference/algorithm/random_shuffle/</a>
  and wondered if its possible to random_shuffle an array of int elements. This is my code</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;algorithm&gt;
  
  using namespace std;
  
  int main()
  {
      int a[10]={1,2,3,4,5,6,7,8,9,10};
  
      cout &lt;&lt; a &lt;&lt; endl &lt;&lt; endl;
  
      random_shuffle(a[0],a[9]);
  
      cout&lt;&lt;a;
  }
  </code></pre>
  
  <p>I got this error: </p>
  
  <pre><code>error C2893: Failed to specialize function template
      'iterator_traits&lt;_Iter&gt;::difference_type *std::_Dist_type(_Iter)'.
  </code></pre>
  
  <p>My question are:</p>
  
  <ol>
  <li><p>Is it possible to shuffle an int array using <code>random_shuffle</code>. If yes, I would like to learn how to do it.</p></li>
  <li><p>Is <code>random_shuffle</code> only applicable to templates?</p></li>
  <li><p>What does my error mean?</p></li>
  </ol>