Created
April 19, 2014 17:41
-
-
Save JanneSalokoski/11091613 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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