how to use if(math.random == 50)? : <p>So i am trying to make a site that picks a random number and if that number is between for example 50-60 it is going to do something</p>

<p>Here is some code:</p>

<pre><code>var opengg;
window.onload = function() {
    opengg = function() {
    console.log(Math.floor(Math.random() * 100));
    if (Math.floor(Math.random() * 100) == 50) {
            console.log("test")
        }
    }
}
</code></pre>
