Creating a Random walk answer from stack overflow by Jake Burkhead