A follow-up question to How to deal with a PC trying to kill another?
As I understand the answer to that question, PCs killing one another is generally not the intended outcome of campaigns, and the GM simply does not allow PCs to kill one another. In fact if one PC decides to slit the throats of everyone else while they are sleeping, it's a good time to have a talk about how to have fun as a group.
But if that's the case, then how does one play a chaotic evil character without disrupting the game? Chaotic evil characters are unpredictably violent, and sooner or later they are going to turn on other party members with murderous intent. In fact, this description on easydamus.com - which cites adnd1e and 2e sources, Ninjas and Superspies, and various Dragon magazines - makes it sound like chaotic evil characters have to be forced to work in a party, and even then they are always scheming about how to topple the current leader (e.g. by killing other players while they're sleeping). That sounds like a recipe for becoming a problem player and getting ejected from the game, unless one acts out of character, in which case one ceases to be chaotic evil.
How do chaotic evil player characters work? Do players simply not play chaotic evil characters?