you could try:
Create at:
X = choose(random(5, 630), random(650, 1270))
Y = choose(random(5, 350), random(370, 710))
I don't know how well that will work, but what it's basically doing is:
Choose () = pick a random option from list of options
so for X: spawn on left side of player, or right side of player (assuming player is at center 640, 360) and about 10 pixels away from exact center
then for Y: spawn on top or bottom side of player