推荐学习书目
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 · Jan 13, 2019 · 3272 views
    This topic created in 2679 days ago, the information mentioned may be changed or developed.
    2 replies    2019-01-14 10:13:51 +08:00
    xpresslink
        1
    xpresslink  
       Jan 13, 2019
    纯用 python 模拟抛硬币理论上是无法实现的,任何纯软件实现的都伪随机。
    xi2008wang
        2
    xi2008wang  
    OP
       Jan 14, 2019
    @xpresslink 无关软硬件,任何经典过程(即经典力学的过程)所产生的随机数本质上都不是真随机的

    [国家密码管理局-教你学随机数]( http://www.oscca.gov.cn/sca/zxfw/2017-04/25/content_1011723.shtml)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3292 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 02:59 · PVG 10:59 · LAX 19:59 · JFK 22:59
    ♥ Do have faith in what you're doing.