You need to implement a point-in-polygon test. This is done by drawing an horizontal line through the point and finding all polygon sides that cross it. If the number of line/side intersections located on the right of the point is odd, then the point is inside the polygon.
You can use this test by drawing random points in the bounding box of the polygon and stopping when 10 of them pass the insideness test.