Hello,
there are many ways to do that. Have you special rules like no same panel touching each other ? …
One simple solution, generate all the panel you need then jitter them, then some components because you panels are not on the same place. Then grid generation, array could be also used.
random panel placement.gh (9.4 KB)
See this I make a quick search with random panel
For no duplicate you could use my ncolor, but I have to look the result with 5 colors.
And the version without the same
random panel placement n colors.gh (519.1 KB)