python aleatorio verdadero falso
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))