题目内容
(请给出正确答案)
[单选题]
要产生[20,999]之间的随机整数使用()表达式。
A.(int)(20+Math.random()*979)
B.20+(int)(Math.random()*980)
C.(int)Math.random()*999
D.20+(int)Math.random()*980
答案
20+(int)(math.random()*980)
![](https://lstatic.shangxueba.com/sxbcn/h5/images/tips_org.png)
A.(int)(20+Math.random()*979)
B.20+(int)(Math.random()*980)
C.(int)Math.random()*999
D.20+(int)Math.random()*980
第6题
第10题
A.for(表达式1;1;表达式3)
B.for(表达式1; 表达式1; 表达式3)
C.for(表达式1; 表达式2; 表达式3)
D.相当于while(表达式1)
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!