Move edges of rectangles independently of each other

I need to find a way in which I can move each edge of the rectangles you see here, independently.
Besides, it would be cool to be able to assign a randomness parameter to generate different options.

01
02

Topic file.gh (11.8 KB)

Hi,

Here is a way.

There are other possibilities, using Offset Curve for each segment by random values then Line | Line to intersect consecutive segments and retrieve the rectangle…

Topic file.gh (21.6 KB)


erase.gh (13.7 KB)

1 Like