For the random spawns: save a couple of spawn positions in an array variable. Then right after a player respawned (use the “is alive(event player) == true” condition, not the “has spawned”) teleport him to one of the positions with “teleport(event player, random value in array(array variable))”.
For the walls limiting the map you might find this thread useful: [Tool] Effect creator and sphere collision