Update xkcd.lua

This commit is contained in:
Tim 2015-02-11 17:32:09 +01:00
parent 7d25e0a3d5
commit f7015bf92c
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ end
function get_xkcd_random()
local last = get_last_id()
math.randomseed(os.time())
i = math.random(1, data.num)
i = math.random(1, last)
return get_xkcd(i)
end
@ -51,4 +51,4 @@ return {
"xkcd.com/(%d+)"
},
run = run
}
}