If your spawning enemies or whatever around your player you could try something like this. Assign a new instance variable to your enemy called spawnAngle.
Spawn a new enemy ontop of your player
Set the spawnAngle variable of the enemy to: atan(random(0,1)/random(0,1))
Then set the position of the enemy to:
X: cos(self.spawnAngle)*(round(random(0,1))*2-1)*random(300,700)
Y: sin(self.spawnAngle)*(round(random(0,1))*2-1)*random(300,700)
Where 300 is the minimum distance and 700 is the maximum distance away from the player.