Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- math.randomseed(os.time())
- local ONE = math.random(0,99)
- local TWO = math.random(0,999999)
- print("First number:", ONE)
- print("Second number:", TWO)
- local MELT = TWO*1000+ONE
- local ONE2 = tonumber(tostring(MELT):match("^%d*(%d%d%d)$"))
- local TWO2 = math.modf(MELT/1000)
- print("Together:", MELT)
- print("First number from MELT:", ONE2)
- print("Second number from MELT:", TWO2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement