獲取當前系統時間(秒)作為隨機種子 math.randomseed(os.time()) -- 有三種方式: -- 1. 不帶參數調用時,獲取的是[0,1)範圍內的隨機浮點數 -- 2.
確定! 回上一頁