How do I convert this bit of C++ code to C#?
<p>Trying to convert some code, but for all my googling I can't figure out how to convert this bit.</p>

<pre><code>    float fR = fHatRandom(fRadius);
    float fQ = fLineRandom(fAngularSpread ) * (rand()&amp;1 ? 1.0 : -1.0);
    float fK = 1;
</code></pre>

<p>This bit</p>

<pre><code>(rand()&amp;1 ? 1.0 : -1.0); 
</code></pre>

<p>I can't figure out. </p>
