Skip to content

Instantly share code, notes, and snippets.

@JanneSalokoski
Created April 19, 2014 17:41
Show Gist options
  • Save JanneSalokoski/11091613 to your computer and use it in GitHub Desktop.
Save JanneSalokoski/11091613 to your computer and use it in GitHub Desktop.
function main()
io.write("Press enter to start.")
io.read()
local x = 0
while true do
local f = io.open("1904142.txt", "a")
local x = x + math.random()
print(x)
f:write(x .. "0-0")
f:close()
if x > 10000 then
break()
end
end
end
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment