Working transition matrix P for random walk