title: Why is Math.prototype undefined?
body: <p>I must be missing something here, because <code>Math.prototype</code> is <a href="http://jsfiddle.net/R3GqT/">undefined for me</a>. Why is this? I tried to do something like this:</p>
  
  <pre><code>Math.prototype.randomRange = function(from, to){
      return Math.floor(Math.random() * (to - from + 1) + from);
  }
  </code></pre>
  
  <p>But instead had to do something like this:</p>
  
  <pre><code>Math.randomRange = function(from, to){
      return Math.floor(Math.random() * (to - from + 1) + from);
  }
  </code></pre>
  
  <p>That doesn't feel right, though. Is it just me or should I be doing this another way? I apologize if this is a silly or duplicate question, but I couldn't find anything by searching (exactly two questions turn up when I search SO for "Math.prototype", which is kind of weird).</p>