摘要
介绍了Java中伪随机数生成机制,并通过“掷骰子”和“35中7福利彩票”两个游戏模拟程序,着重阐述了伪随机数在Java软件设计中的应用。
This paper introduces the general princle of pseudo-random number generation in java. And the application of Java random number in software design is stressed and described by the two game application program examples of rolliing the dice and welfare lottery.
作者
李晓英
LI Xiao-ying (Higher Vocational Technical College, Guilin University of Technology, Nanning 530001, China)
出处
《电脑知识与技术》
2010年第01X期628-629,631,共3页
Computer Knowledge and Technology