add a generalized XOR distribution