我正在使用 MS Visual Studio 2010。
现在我想通过对数正态分布生成一个 3 到 200 范围内的随机数。
我听说“中心极限定理”可以将均匀分布转换为正态分布,但这对我来说似乎太多了,因为我的范围有 198 个数字:
a = random(MaxRange+1); // mean i have to write this for 198 time???!!!!
x = (a+.......)/198 ; //this will obtain a number which is a normal distribution right???
那么,我可以写吗
y = log (x); // and is this mean that y is log normal distribution????
谢谢回答我的问题....