You can update your logic to say when they collide with it pick a random number between 1-4 and send them in a direction based on the number. Or if they have other things they can do besides just move in directions you can have them do other things as well, jump, attack, fall asleep, etc...