title: Code for password generator
body: <p>I'm working on a C# project where I need to generate random passwords.</p>
  
  <p>Can anyone provide some code or a high-level approach for password generation?</p>
  
  <p>It should be possible to specify the following:</p>
  
  <ol>
  <li>Minimum password length</li>
  <li>Maximum password length</li>
  <li>Valid uppercase characters</li>
  <li>Minimum number of uppercase chars</li>
  <li>Valid lowercase chars</li>
  <li>Minimum number of lowercase chars</li>
  <li>Valid numeric chars</li>
  <li>Minimum number of numeric chars</li>
  <li>Valid alfanum chars.</li>
  <li>Minimum number of alfanum chars</li>
  </ol>