Added randomization to path selection