...
首页> 外文期刊>Nuts & volts >The Design Cycle Generating Random Numbers in Code
【24h】

The Design Cycle Generating Random Numbers in Code

机译:在代码中生成随机数的设计周期

获取原文
获取原文并翻译 | 示例

摘要

Think of a number between 0 and 10. Is your number 3? Did I guess right? If I guessed right, would you say that your mind generated a random number and I just happened to be lucky enough to guess what it was? Or, do you have an affinity to the number 3? Do you have three kids? How about three cars? Why did you come up with the number 3? If I missed the guess and your number was something other than 3, how did you come up with that particular number? Was your choice of numbers really random? Believe it or not, your numerical choice of numbers was most likely not at all truly random. The first thing I did to kill the truly random number selection process was to place a boundary on your choices (0 to 10). The best you could have done toward producing a random number was to provide a quasi-random set of numbers by rearranging the positions of the numbers inside the 0 to 10 number set.
机译:考虑一个0到10之间的数字。您的数字是3吗?我猜对了吗?如果我猜对了,您是否会说您的思想产生了一个随机数,而我恰好幸运地猜到了它是什么?或者,您对数字3有亲和力吗?你有三个孩子吗?三辆车怎么样?你为什么想出数字3?如果我错过了猜测,而您的电话号码不是3,那么您是如何得出该号码的呢?您选择的数字真的是随机的吗?信不信由你,您的数字数值选择很有可能根本不是真正随机的。我要杀死真正的随机数选择过程的第一件事是为您的选择(0到10)设置边界。要生成随机数,最好的办法是通过在0到10的数字集中重新排列数字的位置来提供准随机数集。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号