title: random_shuffle and srand() give me the same result every time
body: <p>I'm trying to produce do some processing on a random permutation of the alphabet, however each permutation produces the same result despite using srand(myseed)<br>
  I have included the <code>&lt;algorithm&gt;</code> header. </p>
  
  <pre><code>string create_permutation(unsigned seed)
  {
      srand(seed);
      string permutation = ALPHABET;
      random_shuffle(permutation.begin(), permutation.end());
      return permutation;
  }
  
  cout &lt;&lt; create_permutation(2) &lt;&lt; endl; // or 3, 4, 5 etc
  // continuously returns 'XQACKHSLOJ,TRBZNGV.W FIUEYDMP
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p><strong>EDIT:</strong> Minimal, Complete, and Verifiable example</p>
  
  <p><em>EDIT 2:</em> adjustment to mcve</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;algorithm&gt;   
  
  using namespace std;
  
  const string ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ.,' ";
  string create_permutation(unsigned seed)
  {
      srand(seed);
      string permutation = ALPHABET;
      random_shuffle(permutation.begin(), permutation.end());
      return permutation;
  }
  
  int main(){    
      cout &lt;&lt; create_permutation(2) &lt;&lt; endl; // or 3, 4, 5 etc
      // continuously returns 'XQACKHSLOJ,TRBZNGV.W FIUEYDMP
      return 0;
  }
  </code></pre>