I am using this formula to generate a random x and y outside of my layout but I only get bunched up enemies that spawn about 1/3 places outside my layout so I figure this formula is wrong. Any ideas?
X = choose(random(-150, -10), random(layoutwidth + 10, layoutwidth + 150))
Y = choose(random(-150, -10), random(layoutheight + 10, layoutheight + 150))