V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
xi2008wang
V2EX  ›  Python

理论的随机,现实的混沌: Python 模拟抛硬币

  •  
  •   xi2008wang · 2019-01-13 12:52:36 +08:00 · 2211 次点击
    这是一个创建于 1927 天前的主题,其中的信息可能已经有所发展或是发生改变。
    2 条回复    2019-01-14 10:13:51 +08:00
    xpresslink
        1
    xpresslink  
       2019-01-13 21:13:15 +08:00
    纯用 python 模拟抛硬币理论上是无法实现的,任何纯软件实现的都伪随机。
    xi2008wang
        2
    xi2008wang  
    OP
       2019-01-14 10:13:51 +08:00
    @xpresslink 无关软硬件,任何经典过程(即经典力学的过程)所产生的随机数本质上都不是真随机的

    [国家密码管理局-教你学随机数]( http://www.oscca.gov.cn/sca/zxfw/2017-04/25/content_1011723.shtml)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2572 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 16:00 · PVG 00:00 · LAX 09:00 · JFK 12:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.