摘要

In order to carry out the simulation, we need a source of random numbers distributed according to the desired probability distribution. In this paper we have constructed algorithms for generating both continuous and discrete random variables. One simulates a discrete random variable having a geometric distribution, which is used in reliability. We also create some algorithms for generating: a normal continuous variable, other continuous variables having exponential distribution, Weibull distribution, gamma distribution. The aim of this paper is to see that if we have random numbers generated according to some distribution, we may perform a transformation to generate the desired distribution.

  • 出版日期2013-11