Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python random true false

bool(random.getrandbits(1)) #is still about twice as fast as random.choice([True, False])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #random #true #false
ADD COMMENT
Topic
Name
4+3 =