This is a pretty trivial way. Find the smallest number of bits = b that can express k different numbers. For instance. for k = 4, use b = 2 bits. Divide 64 bits into pieces of size 2. For each fragment, give each number a different number from the available 2 ^ b> = k.
eg. for k = 4 numbers b bits are 00, 01, 10, 11 and there are 4 possibilities:
0000
0101
1010
1111
If you have c chunks, then each number differs from the number from each other by at least one bit of each of the c-fragments, so the minimum guaranteed separation of hamming is c.
You can also rearrange the selection of numbers inside each fragment, which will lead to more random examples, such as
0011
0101
1000
1,110
source share