Thanks for the Max files, I've taken a look and I think I have a solution that will work for this situation. In this case I am assuming that you don't want any of the panel to be sliced. If that is the case you will want to use the generator's Adaptive
mode. This ensures that only whole segments are used, which are then subtly scaled to fill the available space (you can read more about this mode here
The only catch with this mode is that it doesn't work well when randomising segments with different lengths. So to get around this I usually combine a few segments together to form units that all have the same distance on the X axis. These can then be safely randomised using adaptive mode.
I've then used the same segments in the Corner input. In this case, wire the random operator to a Compose node twice,separated by a Null segment. This lets you control the spacing on the corner to ensure the segments don't have overlapping polygons and also allows you to create mirrored versions of the segment after the corner. The final node tree looks like this:
Note that a second Randomise operator is used to create a different random segment on each side of the corner. If I had used the same random node, the segment would be the same before and after the corner.
I hope that helps, please see the attached file for this example and if you have any further question, please let me know.