How to Spawn Pillager Patrols

Very simple end goal in mind, I want to have a function that spawns a pillager patrol. The issue I’m running into now, though, is the newly spawned pillagers don’t stay near each other. They all wander away from each other. Is there a simple solution?
Continue to help post