Random generation of [ABCDE] sequences added.