Cycles through all the directions the given number of times. If you have
one cycle, it goes through each direction once in a random order. With two
cycles, it will move each direction twice, but in random order - can be
W, W, N, E, S, S, N, E, for example; it will not do the cycles in order but
upon completion will have gone through them all.
This can be convenient because if the character's movement is not constrained,
it will always return back to where it started after a random movement.
an input range of Points. Please note that the current version returns
Point[], but I reserve the right to change that in the future; I only promise
input range capabilities.
Cycles through all the directions the given number of times. If you have one cycle, it goes through each direction once in a random order. With two cycles, it will move each direction twice, but in random order - can be W, W, N, E, S, S, N, E, for example; it will not do the cycles in order but upon completion will have gone through them all.
This can be convenient because if the character's movement is not constrained, it will always return back to where it started after a random movement.