Added generational automaton and random generation through codes