feat(lotto): point_in_time_draws 헬퍼
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -85,6 +85,12 @@ def random_null_tickets(k: int, seed: Optional[int] = None) -> List[List[int]]:
|
||||
return out
|
||||
|
||||
|
||||
def point_in_time_draws(draws: List[Tuple[int, List[int]]],
|
||||
target_draw_no: int) -> List[Tuple[int, List[int]]]:
|
||||
"""target 회차 추첨 '직전' 시점의 데이터 — target_draw_no 미만만."""
|
||||
return [(d, nums) for d, nums in draws if d < target_draw_no]
|
||||
|
||||
|
||||
def coverage_tickets(k: int, seed: Optional[int] = None) -> List[List[int]]:
|
||||
"""greedy 커버리지 — 아직 덜 쓰인 번호를 우선 배치해 번호를 넓게 분산.
|
||||
(휠링/보장설계는 향후. 현재는 distinct + 번호 사용 균등화)"""
|
||||
|
||||
Reference in New Issue
Block a user