title: Algorithm to generate random 2D polygon
body: <p>I'm not sure how to approach this problem. I'm not sure how complex a task it is. My aim is to have an algorithm that generates any polygon. My only requirement is that the polygon is not complex (i.e. sides do not intersect). I'm using Matlab for doing the maths but anything abstract is welcome.</p>
  
  <p>Any aid/direction?</p>
  
  <p>EDIT:</p>
  
  <p>I was thinking more of code that could generate any polygon even things like this:</p>
  
  <p><img src="https://i.stack.imgur.com/bxa3b.png" alt="enter image description here"></p>