findNearest: randomization and safePath