今天看到lua數學庫中random math.random有3種調用方式: 1:不帶參數,返回[0,1]之間 ... 一般還會配合隨機化種子函數math.randomseed(os.time())使用.
確定! 回上一頁