未分类 · 2025年11月21日

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

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

正确答案:C