Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A bitset of length L = 10 initialized with (bits of) a random integer:

L = 10
Bitset( ZZ(randint(2^L,2^(L+1)-1)).binary()[1:] )