Random path generator for random distribution of nodes.