01Java-方法
一:动手动脑 1.编写一个方法,使用以上算法生成指定数目(比如1000个)的随机整数 package reserve; import java.util.Scanner; import java.util.Arrays; import java.util.Random; public class Main{ public static void main(String[] args) { Random random = new Random(); Scanner sc = new Scanner(System.in); System.out.println( "请输入产生随机数的个数:" ); int count= sc.nextInt(); byte [] buffer= new byte [count]; random.nextBytes(buffer); System.out.println(Arrays.toString(buffer)); } } package hu; import java.util.Random; import java.util.Scanner; public class Hu { public static void main(String[] args) { Scanner in = new Scanner(System.in); int m