在Java中,Random类的nextInt(int bound)方法生成的随机数范围是什么?

答案解析

nextInt(int bound)方法生成的随机数范围是从0(包括)到指定的bound值(不包括),即0到bound-1。
正确答案:A
随机推荐
开始刷题