Use std srand to get random direction. #4