How to fill a rectangle a fixed number of random sized ractangles
===


Every Rectangle (the parent and the childs) are random sized but within a fixed range (different for all of them) and can be resized within this range if needed.

Now i want to fit a certain nummber of Rectangles into a bigger one so that they fill it out.

In Specifc the big Rectangle is a house where the smaller ones are Rooms. If needed it might be possible to cut out a rectanlge in a corner of the house to be able to fill it fully as long as its lenght/width stay above the minimum.

I am trying to solfe this myselfe. But i would like some tips/solutions or similar problems and their solution. The packing problem does not seem to fit since it does not try to fill the parent object.

If something is not clear pleas ask.