Advertisement
Bolodefchoco_LUAXML

[Script] Lottery possibilities [6 numbers]

Aug 16th, 2018
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local current_file = 0
  2. local file
  3.  
  4. for a = 1, 55 do
  5.     if file then
  6.         file:close()
  7.     end
  8.     current_file = current_file + 1
  9.     file = io.open(current_file .. ".txt", "a+")
  10.     for b = a + 1, 56 do
  11.         for c = b + 1, 57 do
  12.             for d = c + 1, 58 do
  13.                 for e = d + 1, 59 do
  14.                     for f = e + 1, 60 do
  15.                         file:write(string.format("%02d\t%02d\t%02d\t%02d\t%02d\t%02d\n", a, b, c, d, e, f))
  16.                     end
  17.                 end
  18.             end
  19.         end
  20.     end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement