Anonymous user
Statistics/Normal distribution: Difference between revisions
→{{header|Lua}}
(Added Julia language) |
|||
Line 1,571:
<lang Lua>function gaussian (mean, variance)
return math.sqrt(-2 * variance * math.log(math.random())) *
math.cos(2
end
|