1) you are not generating a path, you are generating a position, a single position.
2) you are making the x and y positions have a variance, if you happen to generate a random position that is not walkable, then the if statement will not execute.
3) if the position is too far to walk to then it will do nothing.
LocalWalker will not take you cross regions without a path unless the region is cached, then it might (depends on client implementation).
If you are trying to walk a path, you need to give it a path. This will walk from one single point (the player) to the sudo random position that you are generating within the same region.
If that is what you want to do then this will kind of work maybe sometimes.