Ad
Code
Diff
  • from random import getrandbits
    
    def RandomBool():
        return bool(getrandbits(1))
    • from random import getrandbits
    • class RandomBool(object):
    • def __init__(self):
    • self.b = bool(getrandbits(1))
    • def __repr__(self):
    • return f'{self.b}'
    • def RandomBool():
    • return bool(getrandbits(1))