單項選擇題

要產生30~50之間的隨機整數(shù),下列表達式正確的是()。

A.int(rnd*20+30)
B.int(rnd*21+30)
C.int(rnd*31+20)
D.int(rnd*50)

微信掃碼免費搜題