function ptrng(v1,v2) return math.sqrt((v1^2)+(v2^2)) end for i=0,10,1 do a=math.floor(math.random(100));b=math.floor(math.random(100)) print("ptrng("..tostring(a)..","..tostring(b)..")="..tostring(ptrng(a,b))) end