摘要
随机数广泛地运用于软件测试、系统仿真、游戏等领域.针对伪随机数的生成这一重要问题,说明了均匀分布的伪随机数的产生,详细阐述了通过均匀分布的伪随机数来产生非均匀分布的连续型随机数和离散型随机数的原理及生成算法,并给出了的服从正态分布、指数分布、二项分布、泊松分布的随机数的java实现.
Random numbers are widely used in the field of software testing ,system simulation ,games and so on .Concentrating on the generation of random numbers ,this essay explains how the uniformly dis-tributed pseudo-random numbers are produced .And through presenting algorithms and their theories ,the essay elaborates how to generate non-uniform distribution numbers including continuous distribution and discrete distribution with original uniform distribution numbers .Then after ,it introduces several instances in java to generate random numbers subjected to normal distribution ,exponential distribution ,binomial distribution and poisson distribution respectively .
出处
《菏泽学院学报》
2015年第5期42-46,共5页
Journal of Heze University
基金
福建省教育厅科技项目(JB14175)
关键词
伪随机数
非均匀分布
连续型分布
离散型分布
JAVA
Java
pseudo-random number
non-uniform distribution
continuous distribution
discrete distribution
Java