首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于微控制器产生随机数的新方法
引用本文:王海璇,张新宝,陈小彦,李宝华.基于微控制器产生随机数的新方法[J].吉林大学学报(信息科学版),2016,34(5):622-625.
作者姓名:王海璇  张新宝  陈小彦  李宝华
作者单位:吉林大学电子科学与工程学院,长春,130012;吉林大学电子科学与工程学院,长春,130012;吉林大学电子科学与工程学院,长春,130012;吉林大学电子科学与工程学院,长春,130012
基金项目:国家自然科学基金青年科学基金资助项目(61204055)
摘    要:为产生应用于实践中的真正随机数, 提出了一种利用微控制器的定时器产生随机数的新方法。 使用微控制器的定时器检测按键按下的时间, 利用按下按键的时间间隔的随机性获得随机数。 微控制器的定时器工作在定时状态, 由微控制器监测按键, 按下按键时, 微控制器立即读取其定时器的值, 此数值即为随机数。 通过统计学方法对实验数据的概率密度和自相关性进行了分析和验证。 实验结果显示, 其概率密度分布均匀且其自相关性接近零。 采用该方法可产生随机数序列, 且相比于纯数学的产生随机序列的方法更为简单、 方便。

关 键 词:随机数  随机数的产生  随机数的验证
收稿时间:2015-06-03

Method Based on Micro Controller to Generate Random Number
WANG Haixuan,ZHANG Xinbao,CHEN Xiaoyan,LI Baohua.Method Based on Micro Controller to Generate Random Number[J].Journal of Jilin University:Information Sci Ed,2016,34(5):622-625.
Authors:WANG Haixuan  ZHANG Xinbao  CHEN Xiaoyan  LI Baohua
Institution:College of Electronic Science and Engineering, Jilin University, Changchun 130012, China
Abstract:In order to generate the real random numbers, which can be applied to the practice, this paper proposes a new method of using microcontroller timer to generate random numbers. It uses microcontroller timer to test button press time, using the time interval of the button when it is on to calculate the randomness of the random number. When the button pressed, microcontroller reads the value of the timer immediately, this value is the random Numbers. The experimental results showed that the probability density distribution is uniform and its the correlation is close to zero, and this method is more simple than pure mathematics physics method.
Keywords:random number  generation of random numbers  validation of the random number
本文献已被 万方数据 等数据库收录!
点击此处可从《吉林大学学报(信息科学版)》浏览原始摘要信息
点击此处可从《吉林大学学报(信息科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号