title: How to generate points with random positions inside a polygon? (d3.js)
body: <p>I am making a map with some countries and I would like to draw points which are randomly position inside those countries. I was trying to use bounding box, but the points were  very often  drawn outside the country.</p>
  
  <p>I have found the point-in-polygon function <a href="http://bl.ocks.org/bycoffe/5575904" rel="nofollow">http://bl.ocks.org/bycoffe/5575904</a></p>
  
  <p>It checks if the point intersects with some line coordinates and I don't know how to get those from my map.</p>
  
  <p>Regards,
  Almbu</p>