- 注册时间
- 2009-3-3
- 最后登录
- 2019-7-11
版主
  
- 积分
- 12742
|
即均值为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.
*
*/
|
|