Here is a python script that will help find those skip numbers. In my programs, I always have a last7 or a last10 file for testing purposes. I'm using it here to determine skips for the PA Pick 3. Here is the output:
import itertools
def read_history_from_file(file_path):
history = []
with open(file_path, 'r') as file:
for line in file:
draw = list(map(int, line.strip().split(',')))
history.append(draw)
return history
def calculate_skips(history):
last_line = history[-1]
skips = {i: None for i in range(10)} # Initialize skips for numbers 0 to 9
for number in range(10):
if number in last_line:
skips[number] = -1 # Representing 'Current' skip count as -1
else:
for i, draw in enumerate(reversed(history[:-1]), 1):
if number in draw:
skips[number] = i
break
if skips[number] is None:
skips[number] = len(history)
# Adjust skips by adding 1 to each skip value, except for 'Current' skips
for number, skip in skips.items():
if skip != -1:
skips[number] += 1
return skips
def main():
file_path = r'C:\Users\Bob\Documents\match3\last30.txt'
history = read_history_from_file(file_path)
skips = calculate_skips(history)
print("Number\tSkips")
for number, skip in skips.items():
if skip == -1:
print(f"{number}\tCurrent")
elif skip == 'NONE':
print(f"{number}\t{skip}")
else:
print(f"{number}\t{skip}")
# Find top 4 skips, excluding 'Current' skips
top_skips = sorted(skips.items(), key=lambda x: x[1], reverse=True) # Sort skips by skip count
top_skips = [num for num, skip in top_skips if skip != -1][:4] # Get the top 4 numbers
# Print top 4 skips
print("\nTop 4 Numbers with Highest Skips:")
for number in top_skips:
print(f"{number}:\t{skips[number]}")
# Generate combinations of 3 numbers
combinations = itertools.combinations(top_skips, 3) # Generate all combinations of 3 numbers
# Print combinations (optional)
print("\nCombinations of Top Numbers (3 digits):")
for combination in combinations:
print(combination)
if __name__ == "__main__":
main()
Number Skips
0 4
1 Current
2 11
3 8
4 3
5 Current
6 2
7 6
8 3
9 Current
Top 4 Numbers with Highest Skips:
2: 11
3: 8
7: 6
0: 4
Combinations of Top Numbers (3 digits):
(2, 3, 7)
(2, 3, 0)
(2, 7, 0)
(3, 7, 0)
Process finished with exit code 0
and this is the last7 file that I used:
9,4,8
1,6,3
7,3,3
6,4,8
6,7,1
6,1,9
0,4,0
1,8,4
6,9,6
9,1,5
Free to use. go nuts!