Creating random pattern with specific sized rectangles

Hello
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 …