Random Movement + Collision Detection

I’m trying to make a map of my office with people (circles) moving around randomly and need a code that will tell them to move around and not run into the walls. I understand the collision detection .fla file (hittest_example) and the random movement file (randommx) but don’t know how to put the two together. I also need the people to be somewhat contained within their offices and walking down the hallways… here’s my .fla file if someone can help!