You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * @param {number} n - 随机数最大范围 */functiongetRandomNum(n){// 返回 n 以内的随机整数 m (0 <= m < n)// return Math.floor(Math.random() * n);// 返回 n 以内的随机数 m (0 <= m < n)returnMath.random()*n;}
Activity
liwenkang commentedon May 14, 2019
AMY-Y commentedon May 14, 2019
liwenkang commentedon May 15, 2019
实测没问题......╰( ̄▽ ̄)╭
AMY-Y commentedon May 15, 2019
哈哈哈,我的问题,return和console这些都有点忘了