| 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:] )
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.