A good way to check a chars 'integrity'
<p>I'm working on making my own password generator; and I want it to create passwords that contain numbers, lowercase-letters, and uppercase-letters.  </p>

<p>I am writing the program in C#, using Visual Studio.<br>
Say I use the code below:</p>

<pre><code>Random Rand = new Random();

Char C = Convert.ToChar(Rand.Next(0x30, 0x5A));
</code></pre>

<p>How could I make my program check whether (C) is equal to a number or a uppercase-letter?</p>
