数百万ドルの価値があるコード


package com.kkllor.shuangseqiu;

import java.util.*;

public class AutoChoose {
	public static void main(String[] args) {
		Object arrays[];
		List<Integer> hs = new ArrayList<Integer>();
		int i = 0;
		while (i <= 6) {

			int redBall = new Random().nextInt(33);
			if (!hs.contains(redBall) && redBall != 0 && i <= 5) {
				hs.add(redBall);
				i++;
			}

			int blueBall = new Random().nextInt(16);
			if (!hs.contains(blueBall) && blueBall != 0) {
				hs.add(blueBall);
				i++;
			}
		}

		arrays = (hs.toArray());
		Arrays.sort(arrays, 0, arrays.length - 1);
		System.out.println(Arrays.toString(arrays));
	}
}