Hi,

Say I have an x number of bits and I'd like to know all possibilities for that number, but only half of the bits can be toggled at the time.
For 4 bits these would be:
Code:
0011
0110
1100
1010
0101
1001
What would be a methodical way of getting those for a bigger x?

Thanks