Except that OP actually asked for spawning outside the Layout?
There are a few different ways to do this
1. Create 4 different spawn zone for each side of the layout, create each one using the logic above. Then use a separate random check to determine which side's spawn to execute.
This Person is dealing with a similar problem/Solution:
2. Create a separate SpawnPoint object, and position instances around the outer edge of your Layout, Then use an event with the condition "Pick random instance" of SpawnPoint ->Spawn another object to create enemies.
This is bit more of a basic approach, and isn't truely random, but personally it's what I'd do because it has the advantage of being visual.