RosettaCodeData/Task/Random-numbers/Lua/random-numbers.lua
2023-07-01 13:44:08 -04:00

4 lines
139 B
Lua

local list = {}
for i = 1, 1000 do
list[i] = 1 + math.sqrt(-2 * math.log(math.random())) * math.cos(2 * math.pi * math.random()) / 2
end