You really should implement a more probabilistic model rather than just using plain randomness for everything. (i.e.: nest depth of tags effects chance of escaping tags or increasing nest dept, && certain random patterns that have already occured should be more likely to reoccur.
that's great if you want to get the same five patterns over and over again instead of coming up with new ones.