franniss 发表于 2009-9-19 12:51:01

高斯随机数

即均值为0方差为1的随机数。做高阶拟真游戏会用到。

/*gauss_random(mean,standard deviation)
* Implements the Polar form of the Box-Muller Transformation
*
* © Copyright 1994, Everett F. Carter Jr.
*   Ported to GML by Tsa05
* Permission is granted by the author to use
* this software for any application provided this
* copyright notice is preserved.
*
* m = mean, s = standard deviation, return = double
* Recall that numbers beyond the Standard Deviation
* are possible (just not probable), and should be accounted for.
*
*/

**** Hidden Message *****

diebeijao 发表于 2011-10-4 23:02:47

好 看看

secondsen 发表于 2011-10-6 14:37:46

回复可见

bloodraven 发表于 2011-10-18 18:37:59

我正愁这个呢~~~··
页: [1]
查看完整版本: 高斯随机数