a random path generator