python aléatoire vrai faux

bool(random.getrandbits(1)) #is still about twice as fast as random.choice([True, False])
MrStonkus