Random 2d ploygon in a containor by C++