在计算机上,怎么产生非伪随机数呀?
登录 | 论坛导航 -> 华新鲜事 -> 求学狮城 | 本帖共有 4 楼,分 1 页, 当前显示第 1 页 : 本帖树形列表 : 刷新 : 返回上一页
<<始页  [1]  末页>>
作者:bugzzj (等级:2 - 初出茅庐,发帖:13) 发表:2007-09-24 11:43:44  楼主  关注此帖评分:
在计算机上,怎么产生非伪随机数呀?
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:bugzzj (等级:2 - 初出茅庐,发帖:13) 发表:2007-09-24 14:38:56  2楼
you mean not "pseudo random numbers"?
yes.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:bugzzj (等级:2 - 初出茅庐,发帖:13) 发表:2007-09-24 15:27:14  3楼
I don't know any existing algorithm generating non-pseudo random numberbut what's the application that must require non-pseudo random number?
nothing, just for fun.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:bugzzj (等级:2 - 初出茅庐,发帖:13) 发表:2007-09-24 17:18:09  4楼 评分:
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版所有回复从这里展开收起列表
论坛导航 -> 华新鲜事 -> 求学狮城 | 返回上一页 | 本主题共有 4 篇文章,分 1 页, 当前显示第 1 页 | 回到顶部
<<始页  [1]  末页>>

请登录后回复:帐号   密码