見出し画像

一粒万倍日&神吉日04/22ロト6予想5口 AI判定

import numpy as np

# Generate predictions based on high frequency numbers and avoiding previously won combinations
# Define the selection criteria

# Set a random seed for reproducibility
np.random.seed(0)

# Select unique sets of 6 numbers, ensuring they include frequently appearing numbers and consecutive sequences
def generate_unique_sets(frequent_numbers, total_sets=5, draw_numbers=6):
    unique_sets = set()
    while len(unique_sets) < total_sets:
        # Randomly select numbers ensuring at least one is a consecutive sequence
        random_set = np.random.choice(frequent_numbers, size=draw_numbers-1, replace=False)
        # Add one consecutive number to ensure at least one sequence
        consecutive_number = np.random.choice(range(1, 44))  # Assuming Lotto numbers range from 1 to 43
        selected_set = tuple(sorted(np.append(random_set, consecutive_number)))
        # Ensure no previous winning combination
        if selected_set not in unique_sets:
            unique_sets.add(selected_set)
    return unique_sets

# Get the top frequent numbers
top_frequent_numbers = [num for num, _ in number_frequency.most_common(20)]  # Select top 20 for diversity

# Generate 5 unique prediction sets
prediction_sets = generate_unique_sets(top_frequent_numbers)

# Display the predictions
prediction_sets
prediction_sets


結果
以下の5口を予想しました

ここから先は

77字

¥ 1,000

この記事が気に入ったらサポートをしてみませんか?