Move randomly without colliding?

I am wondering how is the most efficient way to make a non controlled actor move around the screen and turning without crashing into buildings. The way I would do it is make an invisible actor at the intersections and when the car collides with that actor generate a random direction (90, 180, 0) degrees rotation. Is this the most efficient way?