Spawn objects already snapped together

Hi there.

I’m sure someone would have done this already, but I just don’t know what to call it or what to search for.

I have hexagonal shaped tiles. I want between 3 and 6 of these tiles to spawn at the same time, already snapped to each other on random sides to form kinda like a puzzle piece which can be clicked and dragged around. This piece should then snap to a grid.

I started using the unreal Endless Runner tutorial as a base to work from, but I realized that wont work because tiles might spawn over each other.

Here is a good example of what I want to make, except the pieces in this game are clearly premade. I want mine to be randomly generated.

If anyone knows of a tutorial that already covers something like this, I would appreciate it if you could share it!