[quote:3mmbmi49]Create spr_enemy at X: random(LayoutWidth) Y: random(LayoutHeight)
You kinda answered your own question
The layout in topleft corner is (0,0) and the bottomright is (LayoutWidth, layoutHeight)
So every value outside of these are outside the layout.
(-100, layoutHeight) Would spawn an enemy on a random point on the left side outside the layout.
(layoutWidth + 100, layoutHeight) Would spawn an enemy on a random point on the Right side outside the layout.
And the same for top and bottom.