title: How do I randomize my program's Window Title?
body: <p>I am trying to make my program have a different window title each time it get's compiled.</p>
  
  <pre><code>void rndmTitle() {
      int num;
      int length = 15;
  
      std::string characters = "abcdefghi9182345jklmnopqrstuv211935960473wxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
      for (int j = 0; j &lt; length; j++)
      {
          num = rand() % 80 + 1;
      }
      SetConsoleTitle(characters[val.num]);
  }
  
  </code></pre>
  
  <p>I got that code from a password generator I had made a while ago.
  However it doesn't work like I thought it would.</p>
  
  <p>It's supposed to take random letters/numbers from those 81 characters in "string characters" and then set it as window title.</p>
  
  <p>But if I try to set the console title, it'll just tell me that the argument of type "char" is incompatible with parameter of type "LPCSTR".</p>