RosettaCodeData/Task/Random-numbers/Lingo/random-numbers-2.lingo

5 lines
121 B
Text
Raw Permalink Normal View History

2018-06-22 20:57:24 +00:00
normal = []
repeat with i = 1 to 1000
normal.add(1 + sqrt(-2 * log(randf())) * cos(2 * PI * randf()) / 2)
end repeat