题目内容
(请给出正确答案)
[单选题]
在java中的Math.round(-1.5)等于多少()
A.-1
B.1.5
C.1
D.staticfinalintNAME=200
提问人:网友154336271
发布时间:2022-09-29
A.-1
B.1.5
C.1
D.staticfinalintNAME=200
A.n=Math.round(Math.random(100))+1;
B. n=Math.round(Math.random()*100)+1;
C. n=Math.floor(Math.random(100))+1;
D. n=Math.floor(Math.random()*100)+1;
在JavaScript中要生成一个随机数,应该使用
A. Math.round()
B. Math.random()
C. Math.ceil()
D. Math.floor()
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!