Shuffling an array in c++
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3169015/how-exactly-should-i-implement-a-shuffle-or-random-number-algorithm-for-an-array">How exactly should I implement a shuffle or random-number algorithm for an array to display quotes in random order?</a>  </p>
</blockquote>



<p>I have a small array that I need the values to be randomly shuffled around within the array. I can do this in python using random.shuffle(), but I can seem to figure out how to do it in C++.</p>

<p>Here is an example in python of what I want to do in C++</p>

<pre>
<code>
#!/usr/bin/python

import random

array = [1,2,3,4,5]

random.shuffle(array)

print array
</code>
</pre>
