7 lines
168 B
Text
7 lines
168 B
Text
a = []
|
|
for i in [0:1000] : a+= norm_rand_num()
|
|
|
|
function norm_rand_num()
|
|
pi = 2*acos(0)
|
|
return 1 + (cos(2 * pi * random()) * pow(-2 * log(random()) ,1/2)) /2
|
|
end
|