added rng

added rng using cstdlib rand() and srand() -- randomness will do for now
until adding a linked list and searching it for patterns similar to the
most recent pattern of is possible