 <p>This is quite simple.</p> <ol> <li>Get maximum and minimum values of latitude and longitude.</li> <li>generate random value of longitude (use uniform distribution).</li> <li>generate random value of latitude (you can use uniform distribution or take into account shape of the earth).</li> <li>check if random point is inside of polygon, if not then try again.</li> </ol>