Python losowy prawda Fałsz
bool(random.getrandbits(1)) #is still about twice as fast as random.choice([True, False])
MrStonkus
bool(random.getrandbits(1)) #is still about twice as fast as random.choice([True, False])
import random
bool(random.getrandbits(1))