Creating random pattern with specific sized rectangles

Hello community!

I’m working on a project of my own, where I’m trying to randomize a pavement pattern with specific sized slabs/tiles. I’ve tried a few tutorials, and I’ve found similar projects on the old forum, albeit without success. The tutorials randomizes the tiles into random sizes and the similar projects on the old forum do not work anymore in terms of addons etc; Rectangle false "packing" (Sample and example) - Grasshopper.

I’m able to divide a surface into a random pattern of tiles, but how do I determine specific sizes for the tiles, and then the surface is divided by those? I’m thinking 30x30 cm, 30x60, 60x60 and 60x120 as an example.

I hope someone can lead me in the right direction :slight_smile:. I’m sorry if this has been posted multiple times before, but I’ve scoured the internet for 2 hours trying to find something useful.

you could look at that

From your example set
Max width to 4
Max height to 2
And just scale everything by 30 at the end.

You’ll surely have to tweak the program in order to not choose some rectangles like 120 x 120, 30x120 …