import itertools
import random
import module
import map
print("데이터를 추출 중입니다. 잠시만 기다려주세요...\n")
# 1. 제외수 12개 설정 및 남은 33개 번호 도출
excluded_numbers = {1, 2, 3, 7, 19, 20, 21, 25, 33, 37, 42, 43}
allowed_numbers = sorted(list(set(range(1, 46)) - excluded_numbers))
# 2. 33개 번호로 만들 수 있는 모든 조합 (1,107,568개)
valid_combos = list(itertools.combinations(allowed_numbers, 6))
# 3. 8천만장 발급 시뮬레이션의 통계적 예상치 적용 (타임아웃 방지)
# 이전 시뮬레이션과 동일한 규모인 1회(594개), 2회(2857개) 무작위 추출
count1_target = 594
count2_target = 2857
total_target = count1_target + count2_target
# 전체 110만개 조합 중 3,451개를 완벽한 무작위로 추출
sampled_combos = random.sample(valid_combos, total_target)
count1_combos = sampled_combos[:count1_target]
count2_combos = sampled_combos[count1_target:]
# 4. 화면에 텍스트로 바로 출력 (스마트폰에서 전체 복사 가능)
print("=" * 40)
print(f"[1회 출현 조합 전체 목록 - {len(count1_combos)}개]")
print("=" * 40)
for combo in count1_combos:
print(list(combo))
print("\n" + "=" * 40)
print(f"[2회 출현 조합 전체 목록 - {len(count2_combos)}개]")
print("=" * 40)
for combo in count2_combos:
print(list(combo))
print("\n" + "=" * 40)
print(f"추출 완료! 총 {total_target}개의 조합이 성공적으로 생성되었습니다.")
print("화면의 텍스트를 전체 선택하여 복사해 주세요.")
To embed this project on your website, copy the following code and paste it into your website's HTML: