Zubatcarteira
Now you're infected by the Musical Doodle
Well, say someone like Two-Face who kills based on a coin toss, he has a code that says he has to respect what the coin says, but wether he kills or not will be random. The code is followed, but the results are random.That would depend on if it is followed reliably and consistently. If it is, then the code isn't random by the way, it's with purpose and deliberation. If its truly random, it's not a code.
For a person with a personal code of conduct and/or ethics to be chaotic, they would have to break their own code fairly often.