title: Random marker within a rectangular bounds?
body: <p>this is my code :</p>
  
  <pre><code>function getRandom_marker(bounds) {
    var leftBottom=[bounds.getSouthWest().lat(),bounds.getSouthWest().lng()]
    var rightTop=[bounds.getNorthEast().lat(),bounds.getNorthEast().lng()]
    var latlng=[leftBottom[0]+Math.floor(Math.random() * (rightTop[0]-leftBottom[0])),
      leftBottom[1]+Math.floor(Math.random() * (rightTop[1]-leftBottom[1]))]
    return latlng
   }
  </code></pre>
  
  <p>i use this code to Generate a random , but sometimes, the marker is not in the map bounds,</p>
  
  <p>so , what's wrong with my code ?</p>
  
  <p>thanks</p>
  
  <p><strong>updated:</strong></p>
  
  <p>this is the code has Math.abs :</p>
  
  <p><a href="http://jsfiddle.net/PNYCf/1/" rel="nofollow noreferrer">http://jsfiddle.net/PNYCf/1/</a></p>
  
  <p>and this is not has:</p>
  
  <p><a href="http://jsfiddle.net/pRjBr/" rel="nofollow noreferrer">http://jsfiddle.net/pRjBr/</a></p>