1. A method of generating a pseudo random number satisfying a bitset constraint, the method comprising: determining a number of possible solutions satisfying the bitset constraint; selecting an index representing a solution of the possible solutions; and generating the pseudo-random number based on the index.