Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local digits = {1,2,3,4,5,6,8,9}
- local target = {8,8,8,5,4,2,4,3,4,2,1,4,6,4,2,5,5,2,9,9,8,9,1,1,1,1,8,9,5,2,9,2,6,2,8,4,3,1,9,8,8,5,8,9,6,3,4,6,6,4}
- local length = #target
- local function isTargetTime(time)
- math.randomseed(time)
- for i = 1, length do
- if digits[math.random(8)] ~= target[i] then
- return false
- end
- end
- return true
- end
- local ct = os.time()
- while ct > 1 do
- if ct % 100000 == 0 then
- print(ct)
- end
- if isTargetTime(ct) then
- print("found: " .. ct)
- break
- end
- ct = ct - 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement