random spawning

I know this has been asked before but the tutorials aren't working 
How do you make a random spawn behavior inside a random timer container and not have any of the actors that spawn too close together or touching, I'm trying to spawn pits and rocks.
Thanks in advance.

How do you make a random spawn behavior inside a random timer container and not have any of the actors that spawn too close together or touching, I'm trying to spawn pits and rocks.
Thanks in advance.
Comments
but for your questions in your spawn behavior have your x at: random(0,480) and your y at: random(0,480)
that will spawn randomly around the scene for landscape, if your in portrait just switch the 2 positions. Example: ( x would be random(0,320) and y random(0,480)
then to not get them to spawn on top or touch have this rule in them.
When actor overlaps or collides with ( the same actor)
-destroy actor
-spawn actor (your spawning the same actor) x at random(0,480) and y: random(0,360
What that will do is when one spawns if it spawned on another, it will destory before you can see and respawn at another random spot in the scene, and keep doign that till it spawns at a place not touchign another one
cheers