你如何使用Math.random生成随机整数?
我的代码是:
int abc= (Math.random()*100); System.out.println(abc);
打印出的全部是0,我该如何解决?
java random
java ×1
random ×1