New random walk algorithm