Amita: Have you tried a 1-D cellular automaton?
A cellular automaton is a collection of colored cells on a grid of specified shape that evolves through a number of discrete time steps according to a set of rules based on the states of neighboring cells.