I need to generate such a 32-bit binary sequence: it has eight '1' and the rest bits is '0'. So written in hex, some of the sequences will be like these:
000000FF 000001FE 000001FD 000001FB 000001F7 ... The problem is to choose 8 from 32, so there are 10518300 combinations. In other words, there are 10518300 sequences like my examples. I will appreciate it if you give me any suggestions or algorithm to generate my desired sequences.