摘要: 1、随机输出班上5名学生的学号。 代码: public class myrand { public static void main(String[] args) { int s; for(s=0;s<5;s++) { System.out.println((int)(Math.random()*5 阅读全文