摘要
生成不重复随机数列的算法是考试系统设计中的核心技术,其算法的优劣将直接影响到程序的安全性和执行效率,本文针对RND函数产生的随机小数在取整后生成的随机数序列仍然存在非常高的重复率问题,利用递归结合遍历的算法提出并实现了一种产生不重复随机数列的改进方法,解决了传统算法中普遍存在的低效和难以实用等问题,最后通过VB程序描述验证了该算法的有效性。在此基础上作者以所开发的考试系统为原型,根据软件的开发程序从设计思路、开发环境、算法分析、系统功能以及几个关键技术等方面进行了较为详细的阐述。
Not repeat random number generation algorithm is a natural system design exam core technology, the algorithm will directly affect the merits of the safety and efficiency of the implementation process, a random decimal Aiming RND function generator after rounding remains very high repetition rate issue, combined with the use of recursive traversal algorithms to solve the traditional algorithm prevalent inefficient and difficult practical issues, and finally through the VB program describes the validity of the algorithm. On the basis of the examination system in the developed prototype, based on the software development process from design ideas, development environment, algorithm analysis, the system functions as well as several key technology areas, such as a more detailed exposition.
出处
《自动化与仪器仪表》
2015年第10期132-134,共3页
Automation & Instrumentation