题海让大学四年没有难题
白天模式登陆

题目详情

单选题 下列哪个方法调用可以生成一个介于 0(含)和 10(不含)之间的整数随机数

A. Math.random() * 10

B. (int)(Math.random() * 10)

C. (int)(Math.random() * 11)

D. Math.round(Math.random() * 10)

undefined课程封面

学科:

时间:2026-03-17 10:44:07

Copyright © 2022 津ICP备2021001502号