跳到主要内容

math.boxmuller

返回一个服从正态分布的随机数(mu表示均值, sigma表示标准差, rand_max表示分布概率)

声明

float math.boxmuller(float mu = 0, float sigma = 1, int rand_max = 1000000)

参数

参数名描述
mu均值
sigma标准差
rand_max分布概率

返回值

随机数

使用方式

返回文档