मोड्युल:Random didyouknow/science
स्वरूप
मोड्युल कागजात[सिर्जना गर्नुहोस्] [ताजा गर्नुहोस्]
local p = {}
local q = {}
local r = {}
local s = {}
local t = {}
local u = {}
local v = {}
local x = {}
local minnumber = 1
local maxnumber = 20
local mid = (maxnumber+minnumber)/2
local multi = maxnumber/8
local idp = 3
local minnumber = maxnumber - multi
function p.round(p, idp)
math.randomseed( os.time() )
p=math.random(minnumber, maxnumber)
return math.floor(p)
end
local multi = maxnumber/7
local minnumber = maxnumber - multi
function p.round1(q, idp)
math.randomseed( os.time() )
q=math.random(minnumber, maxnumber)
return math.floor(q)
end
local multi = maxnumber/6
local minnumber = maxnumber - multi
function p.round2(r, idp)
math.randomseed( os.time() )
r=math.random(minnumber, maxnumber)
return math.floor(r)
end
local multi = maxnumber/5
local minnumber = maxnumber - multi
function p.round3(s, idp)
math.randomseed( os.time() )
s=math.random(minnumber, maxnumber)
return math.floor(s)
end
local multi = maxnumber/4
local minnumber = maxnumber - multi
function p.round4(t, idp)
math.randomseed( os.time() )
t=math.random(minnumber, maxnumber)
return math.floor(t)
end
local multi = maxnumber/3
local minnumber = maxnumber - multi
function p.round5(u, idp)
math.randomseed( os.time() )
u=math.random(minnumber, maxnumber)
return math.floor(u)
end
local multi = maxnumber/2
local minnumber = maxnumber - multi
function p.round6(v, idp)
math.randomseed( os.time() )
v=math.random(minnumber, maxnumber)
return math.floor(v)
end
local multi = maxnumber/1
local minnumber = maxnumber - multi
function p.round7(x, idp)
math.randomseed( os.time() )
x=math.random(minnumber, maxnumber)
return math.floor(x)
end
return p, q, r, s, t, u, v, x