基于微控制器产生随机数的新方法  被引量:1

Method Based on Micro Controller to Generate Random Number

在线阅读下载全文

作  者:王海璇[1] 张新宝[1] 陈小彦[1] 李宝华[1] 

机构地区:[1]吉林大学电子科学与工程学院,长春130012

出  处:《吉林大学学报(信息科学版)》2016年第5期622-625,共4页Journal of Jilin University(Information Science Edition)

基  金:国家自然科学基金青年科学基金资助项目(61204055)

摘  要:为产生应用于实践中的真正随机数,提出了一种利用微控制器的定时器产生随机数的新方法。使用微控制器的定时器检测按键按下的时间,利用按下按键的时间间隔的随机性获得随机数。微控制器的定时器工作在定时状态,由微控制器监测按键,按下按键时,微控制器立即读取其定时器的值,此数值即为随机数。通过统计学方法对实验数据的概率密度和自相关性进行了分析和验证。实验结果显示,其概率密度分布均匀且其自相关性接近零。采用该方法可产生随机数序列,且相比于纯数学的产生随机序列的方法更为简单、方便。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.

关 键 词:随机数 随机数的产生 随机数的验证 

分 类 号:TP202.4[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象