Randomly generate monsters in designated areas

Hello everyone,

I want to spawn some monsters using UE Blueprints.

Within a single area, three types of monsters can spawn, with adjustable quantities for each. Each spawn point must be at least 2 meters apart, and only on a flat plane.

Advanced:
If spawning across three areas, can I randomly select one area for monster spawns by adding a random number sequence?

If using a switch to trigger monster spawning, would adding a box collision with E-key interaction and setting a Boolean variable MonsterSpawn to True?

First, set the monsters’ number and types, and the area in which they are.

Then check the distance between the two monsters in the loop.

Finally, after the loop is completed, monsters spawn in the area.

Are there any logical issues? What aspects can be simplified or require attention?