How do I move a sequence through an array?

Setup your pattern in a 100 element array, then output the array starting at index 0. On the next iteration output the array starting at index 1. Keep incrementing the starting point at every iteration until you get to index 99 and then start over. Keep in mind you need to wrap around the end of the array at every iteration. You can use the mod (%) operator to take care of that for you.