HOW TO MAKE AN ACTOR MOVE RANDOMLY IN ANY DIRECTION AFTER COLLISION????

I want a ball that when the game start, it moves to a random direction and when it hits a wall or another object, it moves randomly to another direction, Please I would greatly appreciate help on this!
Comments
on collision send it into a new random move direction
there's a random function
Part 6