모듈:Test: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
4번째 줄: 4번째 줄:
  local selection = frame.args['갯수']
  local selection = frame.args['갯수']
     local num1 = tonumber(frame.args[1])
     local num1 = tonumber(frame.args[1])
     return selection + num1
math.randomseed (os.time())
v= math.floor(math.random () *selection) + 1
     return selection + num1 + v
end
end
return p
return p

2015년 12월 14일 (월) 20:42 판

설명문서 [편집] [역사] [새로고침]
이 문서는 모듈:Test/설명문서에서 편집가능합니다

모듈 연습장입니다. 각 모듈에서 편집하면 기존에 사용중인 모듈에 문제가 갈수도 있고 로그가 지저분해지니 여기서 연습을 하고 실제 모듈에 적용하면 될 것 같습니다.

리브레

연습장이나 사용자 문서에서 틀의 사용이나 수정을 연습할 수 있습니다.
분류는 /설명문서에 넣어주세요.

-- 모듈 연습장입니다.
local p = {}
function p.add(frame)
 local selection = frame.args['갯수']
    local num1 = tonumber(frame.args[1])
	math.randomseed (os.time())
	v= math.floor(math.random () *selection) + 1
    return selection + num1 + v
end
return p