java如何生成一个0-100的随机整数? public class Test {public static void main(String[] args) {int num=(int)(Math.random()*101);System.out.println(num);}}