以下( )表达式产生一个 0~7 之间(含 0,7)的随机整数.
2023-12-014JavaScript
以下( )表达式产生一个 0~7 之间(含 0,7)的随机整数.
A.Math.floor(Math.random()*6)
B.Math.floor(Math.random()*7)
C.Math. floor(Math.random()*8)
D.Math.ceil(Math.random()*8)
正确答案是C
