radom direction of shortest Path