randomized flow direction