Equation returning NaN value
<p>I honestly don't understand why this doesn't work. Haven't seen anything close enough to my project to help me.
This function:</p>

<pre><code>    function sneakPast(){

    sneakChance = Math.floor((Math.random()*11)+1)+sneak;
    alert(sneakChance);
    if (sneakChance &gt;=(6*level))
    {
        sneakSuccess = true;
    }
    else {sneakChance = false;}
}
</code></pre>

<p>is being called from this function:</p>

<pre><code>function sceneFourC(){
    sneakPast();
    if (sneakSuccess == true){document.getElementById("Content").innerHTML = "You are able to sneak past the mob into town. &lt;br/&gt;&lt;input type='button' value='Continue.' onClick='sceneFive();' /&gt;";}
    else {document.getElementById("Content").innerHTML = "You fail to sneak past the mob.&lt;br/&gt;&lt;input type='button'/&gt;";}



}
</code></pre>

<p>When the alert comes up it just displays "NaN."</p>

<p>Any tips are much appreciated.</p>
