How can I generate a Bitset with a fixed capacity and random bits?
I'd like to generate Bitset objects with a capacity (length) of 10 bits for which the individual bits are chosen randomly.