單項選擇題要產(chǎn)生[20,999]之間的隨機整數(shù)可以使用以下哪個表達式?()

A.(int)(20+Math.random()*97)
B. 20+(int)(Math.random()*980)
C.(int)Math.random()*999
D. 20+(int)Math.random()*980


您可能感興趣的試卷