Generation of random building shapes in grasshopper

Hi, I would like to crate a script in Grasshopper, that will generate random building shapes based on the assumption that the shape should be a prism, with the base of two intersecting rectangles. Like in the photo below. Did you do anything similar in the past? Can you share with me come concept?
Capture

Hi, here is a script that generate random rectangles depending on a dimension (width if ratio > 1) and a ratio (from 0.1 to 10).
I use OpenNest in order to show the results.

random shape rectangles.gh (18.6 KB)

1 Like

@daniel.satola hello it will be appreciated by myself if you give some comment on what I did.

1 Like