首页 › 答案 › 题库 › 知到智慧树 › 未分类

要产生[10,100]之间的随机整数使用哪个表达式?

要产生[10,100]之间的随机整数使用哪个表达式?
A.10+(int)(Math.random()*91)
B.10+(int)Math.random()*91
C.(int)(Math.random()*100)
D.10+(int)Math.random()*90
正确答案:10+(int)(Math.random()*91)
标签:整数 表达式