public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in=new Scanner(System.in);
System.out.print("How many numbers doyou need to draw?");
int k=in.nextInt();
System.out.print("What is the highest number you can draw?");
int n=in.nextInt();
int[] numbers=new int[n];
for(int i=0;i
int []result=new int [k];
for(int i=0;i
result[i]=numbers[r];
numbers[r]=numbers[n-1];
n--;
}
Arrays.sort(result);
System.out.println("Bet the following combination,It'll make you rich!");
for(int r:result)
System.out.println(r);
}
}