python random true false

Solutions on MaxInterview for python random true false by the best coders in the world

showing results for - "python random true false"
Claudia
13 Aug 2020
1bool(random.getrandbits(1)) #is still about twice as fast as random.choice([True, False])