How to create holes automatically????

I want to know if there is a way to create holes automatically in an irregular polygon like the one in the image, that 3 or 4 holes are generated automatically, with the latitude and longitude of all points of the polygon. Anyone have any idea how it could be done.

You can specify the geometry of holes, like in this examples:

https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Polygon.html

What do you mean by automatically though? Do you mean randomly generated?