📌  相关文章
📜  python random true false - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:11.631000             🧑  作者: Mango

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