资 源 简 介
用c语言编写的产生正态随机数的源代码:
算法一产生12个(0,1)平均分布的随机函数,用大数定理可以模拟出正态分布。
算法二用到了数学中的雅可比变换,直接生成正态分布,但此算法在计算很大规模的数时
会出现溢出错误。-With the c language normal random number generation source code: Algorithm 1 produces 12 (0,1) the average distribution of the random function, with large numbers theorem can be simulated normal distribution. Mathematical algorithms used in the two Jacobi transformation, directly generate a normal distribution, but this algorithm is very large in the calculation occurs when the number of overflow error.