import java.util.Random;
public class Work4 {
public static void main(String[] args) {
//接收传递的数组数据
int num[]=getNum();
for (int i = 0; i < num.length; i++) {
System.out.print(num[i]+" ");
}
}
//产生随机数
public static int[] getNum(){
Random r=new Random();
int[] arr = new int[10];
for (int i = 0; i < arr.length; i++) {
arr[i]=r.nextInt(15)+1;
}
return arr;
}
}