RosettaCodeData/Task/Random-numbers/Lingo/random-numbers-2.lingo
2023-07-01 13:44:08 -04: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