| 1 | initial version |
sage: length = 10
sage: Bitset(f"{{:0{length}b}}".format(randint(0, 2**length - 1)))
0010101001
sage: Bitset(f"{{:0{length}b}}".format(randint(0, 2**length - 1)))
1100101000
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.