摘要
在计算机应用中,很多时候需要大量产生不同随机数,传统的利用数组获取不同随机数的方法效率低,在随机数要求大量时更显得无能为力,尤其在WEB应用中,客户端的不断请求很容易加大服务器的负荷而无法完成,本文通过数据库排序随机与随机数分段相结合的方法,有效的解决了此类问题。
During applications based WEB, a large number of different random numbers are often needed, and the traditional use of the array to obtain the random numbers by different methods are inefficient. It is even more obvious when the number of requests is large, particularly in the WEB applications, where the client continues to request more easily server load and can not be completed. This article proposes an effective solution of such problems through a database of random numbers and random sub-combination of methods.
出处
《武汉工业学院学报》
CAS
2010年第1期64-66,共3页
Journal of Wuhan Polytechnic University
基金
教育部青年基金资助项目(06JC860005)
关键词
WEB
大量
不同
随机数
WEB
a large number of
different
random number