搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

要产生[20,999]之间的随机整数可以使用以下哪个表达式?()

A、(int)(20+Math.random()*97)

B、 20+(int)(Math.random()*980)

C、(int)Math.random()*999

D、 20+(int)Math.random()*980

更多“要产生[20,999]之间的随机整数可以使用以下哪个表达式?()”相关的问题
第2题

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;  

点击查看答案
第3题

A、Int(Rnd(10)+10)  B、Int(Rnd*10+10)  C、Int(Rnd*10+11)  D、Int(Rnd*20-10)  

点击查看答案
第4题

A、192.168.X.Y(X和Y是1-254之间整数)  B、169.254.X.Y(X和Y是1-254之间整数)  C、255.255.X.Y(X和Y是1-254之间整数)  D、168.192.X.Y(X和Y是1-254之间整数)  

点击查看答案
第7题

A、Int(Rnd(1)*27)+10  B、Int(Rnd(1)*28)+10  C、Int(Rnd(1)*27)+11  D、Int(Rnd(1)*28)+11  

点击查看答案
第8题

A、Math.floor(Math.random()*6)  B、Math.floor(Math.random()*7)  C、Math.floor(Math.random()*8)  D、Math.ceil(Math.random()*8)  

点击查看答案
第9题

A、(10,80)  B、(10,81)  C、[10,80]  D、[10,81]  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服