要产生[20 999]之间的随机整数使用()表达式。
已帮助 人
要产生[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 999]之间的随机整数使用()表达式。](/uploads/allimg/6-2399539Q9.jpg)
回答
共1条回复-
20+(int)(math.random()*980)
