Implemented randomizer block.

Some refactoring of redstone circuit TEs.