Generating random shapes following a given pattern to a given area

Hey guys,

I’m new to Grasshopper. Just started using it. I have a raster/pattern that I’m trying to follow. I would want to make Grasshopper randomly generate shapes following the pattern with a given area for example 40 m^2, 80 m^2 and so on.

Right now I have only tried hexagonal shapes manually but the generated output form is irrelevant as long as it follows the pattern and has the needed area.

pattern.3dm (167.9 KB)

Thanks in advance for your help!