say I have two chars and I want to mix up some of the bits in the chars. How exactly do I do this?
For example if I had:
and I wanted to switch the first bits of the chars to get:Code:
How would I code that?Code:
I know there is something that I'm forgetting and when someone tells me I'll kick myself, but right now I think I'm making this way harder than it is. Thank you.