javascript, how to set a var to a certain value then change it randomly
<p>i have this script:</p>

<pre><code>var randNum = Math.floor(Math.random() * 3);
if (randNum == 0){
alert ('0');
} else {
alert ('1');
}
</code></pre>

<p>and every time it runs i get a random value of 1 or 0</p>

<p>what i want is to always start the <code>randNum</code> var as being <code>0</code></p>

<p>any  ideas?</p>

<p>thanks</p>
