RosettaCodeData/Task/Random-numbers/Lingo/random-numbers-2.lingo
2018-06-22 20:57:24 +00:00

4 lines
121 B
Text

normal = []
repeat with i = 1 to 1000
normal.add(1 + sqrt(-2 * log(randf())) * cos(2 * PI * randf()) / 2)
end repeat