title: std::random_shuffle produces same result each time
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6931951/how-to-make-sure-that-stdrandom-shuffle-always-produces-a-different-result">How to make sure that std::random_shuffle always produces a different result?</a>  </p>
  </blockquote>
  
  
  
  <p>I have an array and I wish to shuffle it, I use:</p>
  
  <pre><code>answerPositionArray[0] = 100;
  answerPositionArray[1] = 400;
  answerPositionArray[2] = 800;
  std::random_shuffle(answerPositionArray, answerPositionArray + 2);
  </code></pre>
  
  <p>But every time I run my program the same shuffle comes out, 400, 800, 100. Is there a way to get the shuffle to be different every time? Eg. first time 100, 800, 400 then 800, 400, 100 etc.</p>
  
  <p>Thanks</p>