<p>我赞扬你自己做这件事的愿望。在</p>
<p>早在20世纪50年代,没有超级计算机(当时)的大多数人都无法获得随机数。兰德公司出版了一本名为《一百万个随机数与100000个正态偏差的随机数》的书,从字面上讲,就是随机数。因为它可以让外行进行高质量的研究。在</p>
<p>现在,回到你的问题上来。在</p>
<p>我建议您阅读关于如何使用<em>书籍</em>的<a href="http://www.rand.org/pubs/monograph_reports/MR1418/MR1418.intro.pdf" rel="nofollow noreferrer">instructions</a>(是的,它附带了说明),并尝试在Python代码中实现它。这将不是高效或优雅的,但您将了解最终满足的算法的<em>含义</em>。我喜欢这个角色</p>
<blockquote>
<p>open the book to an unselected page of
the digit table and blindly choose a
five-digit number; this number with
the first number reduced modulo 2
determines the starting line; the two
digits to the right of the initially
selected five-digit number are reduced
modulo 50 to determine the starting
column in the starting line</p>
</blockquote>
<p>读那张数字表真是一门艺术!在</p>
<p>可以肯定的是,我并不鼓励你为生产代码重新设计轮子。我鼓励你通过实现一个聪明的,如果不是非常有效的随机数生成器来学习随机性的艺术。在</p>
<p>我的工作要求我使用高质量的随机数,在有限的情况下,我发现网站<a href="http://www.random.org" rel="nofollow noreferrer">www.random.org</a>是一个非常好的洞察力和材料来源。从他们的网站:</p>
<blockquote>
<p>RANDOM.ORG offers true random numbers
to anyone on the Internet. The
randomness comes from atmospheric
noise, which for many purposes is
better than the pseudo-random number
algorithms typically used in computer
programs. People use RANDOM.ORG for
holding drawings, lotteries and
sweepstakes, to drive games and
gambling sites, for scientific
applications and for art and music.</p>
</blockquote>
<p>现在,去实施你自己的彩票。在</p>