8,756
edits
(title returns link to page) |
mNo edit summary |
||
Line 89: | Line 89: | ||
function p.a(seed) | function p.a(seed) | ||
math.randomseed(tonumber(seed)) | math.randomseed(tonumber(seed)) | ||
local count = cargo.query('Characters=C, GeneralData=GD', 'TRIM(COUNT(C._pageName))=Number', {join='C. | local count = cargo.query('Characters=C, GeneralData=GD', 'TRIM(COUNT(C._pageName))=Number', {join='C.JoinKey=GD.JoinKey', where='C._pageNamespace="0" AND GD.Categories <> "Walls"'})[1]['Number'] | ||
local offsetin = math.random(0 , tonumber(count)) | local offsetin = math.random(0 , tonumber(count)) | ||
local tables = 'Characters=C, GeneralData=GD' | local tables = 'Characters=C, GeneralData=GD' | ||
Line 105: | Line 105: | ||
end | end | ||
function p.test(seed) | |||
return p.a(tostring(seed)) | |||
end | |||
return p | return p |