First time here? Check out the FAQ!
answered 2024-08-21 17:11:21 +0100
A bitset of length L = 10 initialized with (bits of) a random integer:
L = 10
L = 10 Bitset( ZZ(randint(2^L,2^(L+1)-1)).binary()[1:] )