Javascript's switch mistery in my code
<p>I have made Javascript random slogan generator for my testing site and it's somehow bugged and I don't really know why.</p>

<pre><code>&lt;body onload="rndqu()"&gt;
    &lt;div id="head"&gt; &lt;a href="index.html"&gt;Mira's place&lt;a&gt;&lt;br&gt;
            &lt;h2&gt;&amp;#8220;&lt;span id="quote"&gt;&lt;/span&gt;&amp;#8221;&lt;/h2&gt;
    &lt;/div&gt;
&lt;/body&gt;
</code></pre>

<p>And here is the Javascript </p>

<pre><code>var qu;
var slogan;
function rndqu(n){
    var random = function(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
    };  
    qu = random(1, 7);
    switch(qu){
        case 1:
            slogan = "This text is random generated. Woohooo... :P";
            break;
        case 2:
            slogan = "Mira is creating huge game named Rock Paper.";
            break;
        case 3:
            slogan = "I will add discussion on my site!";
            break;
        case 4:
            slogan = "Everyone loves Koding.";
            return;
        case 5:
            slogan = "Mira is potato. :(";
            return;
        case 6:
            slogan = "I'm learning Javascript, this slogan is made in Javascript!";
            return;
        case 7:
            slogan = "There is actually over 9000 slogans!";
            return;
        default:
            slogan = "Is it possible to get default?";
    }
    document.getElementById("quote").innerHTML = slogan;
}
</code></pre>

<p>Sometimes it works and sometimes it doesn't work. I tried Google Chrome and it's console and used this command <code>rndqu(); console.log(qu);</code> to debug it. But I failed. I don't see any bug in the code. </p>

<p>When:</p>

<p><code>qu = 1</code> the slogan works right.</p>

<p><code>qu = 2</code> the slogan works right.</p>

<p><code>qu = 3</code> the slogan works right.</p>

<p><code>qu = 4</code> the slogan doesn't change.</p>

<p><code>qu = 5</code> the slogan doesn't change.</p>

<p><code>qu = 6</code> the slogan doesn't change.</p>

<p><code>qu = 7</code> the slogan doesn't change.</p>

<p>It's total mistery for me why it doesn't work.</p>

<p><strong>EDIT: I'M BLIND DUMB. I'M BLIND DUMB!!!</strong></p>
