在计算机上,怎么产生非伪随机数呀?
登录 | 论坛导航 -> 华新鲜事 -> 求学狮城 | 本帖共有 17 楼,当前显示第 7 楼 : 从楼主开始阅读 : 本帖树形列表 : 返回上一页
作者:bugzzj (等级:2 - 初出茅庐,发帖:13) 发表:2007-09-24 17:18:09  7楼  评分: 
as every instruction is determinedso it's difficult to invent some algorithm that generates non-pseudo random number under the current architecture. I feel it's enough to use pseudo random number to simulate the randomness, with seed set randomly. A more interesting question is this: Does random really exist? Think about tossing a coin, the result (head or tail) is determined by the initial speed, gravity, wind direction, table material etc. If the modeling of the enviornment is complete, the result will always be the same under the same parameters. So the randomness comes from the inability of describing the world completely, is that true?
maybe
"So the randomness comes from the inability of describing the world completely, is that true?"

I think you are right. However, if the "inability of describing the world completely" is certain to us, random exist, to us.
Maybe, randomness is not universal, but relative to the object concerned.


In a computer, although every instruction is determined, environment out of the world is not. eg. consider we are writing an application that throw a dice when the user click a button. We may use clock() to generate a random number.

Here the randomness is determined by time. Assuming a user (or device) can not distinguish time from 1ms. And our computer's clock() has resolution of 1/6 ms. Shall we treat it as a true random (to the player).
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表

本帖共有 17 楼,当前显示第 7 楼,本文还有 N-1 层楼,要不你试试看:点击此处阅读更多 >>



请登录后回复:帐号   密码