What would the algorithm look like for this:
Thefind_random_directionFunction [3points> This function has 1 parameter. This parameter should equal 1 if you are currently
on the top row, 2 if you are on the middle row, and 3 if you are on the bottom row.
It returns either 1, 2, or 3, to indicate a move in the up-right, down-right, or right direction, respectively. The choice between the 3 possibilities is random, but only a valid move should be returned.
Thefind_random_directionFunction [3points> This function has 1 parameter. This parameter should equal 1 if you are currently
on the top row, 2 if you are on the middle row, and 3 if you are on the bottom row.
It returns either 1, 2, or 3, to indicate a move in the up-right, down-right, or right direction, respectively. The choice between the 3 possibilities is random, but only a valid move should be returned.


