What does this PHP (function/construct?) do, and where can I find more documentation on it?
<p>Simple question. Here is this code.</p>

<pre><code>    $r = rand(0,1);
    $c = ($r==0)? rand(65,90) : rand(97,122);
    $inputpass .= chr($c);
</code></pre>

<p>I understand what it does in the <strong>end</strong> result, but I'd like a better explanation on how it works, so I can use it myself. Sorry if this is a bad question. </p>

<p>If you're unsure of what I'm asking about, its the (function?) used here: </p>

<p><code>$c = ($r==0)? rand(65,90) : rand(97,122);</code></p>
