Here is the character code with my buggy random gen code